lifan
8 天以前 9084aa9323a300f1e26717ddd98021fff30d3227
jrj/project/business/Customer3.maint.cpp
@@ -768,6 +768,21 @@
            OnShareMessage();
            return 0;
      }
      if (comdid == L"action:bill.check.ask")
      {
         int row = dw_detail.GetRow();
         if (row < 1) return 0;
         xstring PartyID = dw_detail.GetItemString(row, L"PartyID");
         KXMLDOMDocument xx3 = ViewObject::RetrieveData(L"/sale/data/CustomerV3/entity/GetCustomerResults", L"CustomerID", PartyID);
         xstring Results3 = xx3.text();
         if (Results3 != L"")
         {
            alert(Results3);
            return 0;
         }
      }
   //   else if (comdid.find(L"action:",0) >= 0) return OnAction(comdid);
      return -1;   
   }
@@ -892,7 +907,7 @@
      if(value == L"客户资料附件")
      {   
         
         if(userno == L"admin" || userno == L"00601" || userno == L"00618" || userno == L"00701")
         if(userno == L"admin" || userno == L"00601" || userno == L"00618" || userno == L"00701" || userno == L"00620")
          {
            //alert(dw_detail.GetGuid(1));
            arg.AddArg(L"entityid",dw_detail.GetGuid(1));
@@ -901,6 +916,15 @@
            return 1;
         }
      }
      if (value == L"信保回复附件")
      {
            arg.AddArg(L"entityid", dw_detail.GetGuid(1));
            arg.AddArg(L"ApproveStatus", L"新建");
            OpenWindow(L"dev:xpage[maint.Document.SampleRequestForm.vx]", (LPARAM)&arg);
            return 1;
      }
      if(value == L"客户基本信息")
      {   
         xaserverarg arg1 = GetArg();   
@@ -1209,7 +1233,7 @@
      {
         //xstring userno = publiccode::getUserNo();
         userno = xaserver::GetUserNo();
         if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618")
         if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618" || userno == L"00620")
         {
            dw_detail.SetColumnProp(L"SalesPersonID",L"cellprotect",L"1");
            
@@ -1248,7 +1272,7 @@
         
         ApplyStatus=dw_detail.GetItemString(1,L"ApplyStatus");
         
         if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618")
         if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618" || userno == L"00620")
         {
            if(ApplyStatus ==L"已审核")
            {