| | |
| | | return 1; |
| | | } |
| | | |
| | | int PreOnCmdDispatch(string comdid) |
| | | int PreOnCmdDispatch(xstring comdid) |
| | | { |
| | | if (comdid == L"action:bill.new") |
| | | { |
| | | string s = publiccode::GetUser().id; |
| | | string no = publiccode::GetUser().no; |
| | | xstring s = publiccode::GetUser().id; |
| | | xstring no = publiccode::GetUser().no; |
| | | if (no != L"00303" && no != L"admin") |
| | | { |
| | | KXMLDOMDocument supplier_x = ViewObject::RetrieveData(GetServerUrl(),L"/sale/data/SupplierV3/entity/FindBySaleType", L"id", s); |
| | |
| | | } |
| | | if (comdid == L"action:bill.annex") |
| | | { |
| | | string deptname = publiccode::GetUser().deptname; |
| | | xstring deptname = publiccode::GetUser().deptname; |
| | | if (deptname == L"采购部") |
| | | { |
| | | return 1; |