lifan
2 天以前 a9c816c513d4caf834362c9108b977f6fd02a45b
jrj/project/business/Customer3.maint.cpp
@@ -51,7 +51,7 @@
      return publiccode::GetGuid();         
   }   
   
   int ViewUpdate(int pr,xstring updateItem,xaserverarg  arg)
   int ViewUpdate(LPARAM  pr,xstring updateItem,xaserverarg  arg)
   {
      if(updateItem==L"update")
      {
@@ -885,7 +885,7 @@
      if(value == L"客户资料附件")
      {   
         
         if(userno == L"admin" || userno == L"00601" || userno == L"00701")
         if(userno == L"admin" || userno == L"00601" || userno == L"00618" || userno == L"00701")
          {
            //alert(dw_detail.GetGuid(1));
            arg.AddArg(L"entityid",dw_detail.GetGuid(1));
@@ -913,7 +913,7 @@
      return 1;
   }      
   
   int OnItemClickEx(TEvent* evt, int pr)
   int OnItemClickEx(TEvent* evt, LPARAM  pr)
   {
      xdwtable dw = dw_visit.FindDwTable(L"item",0);
   
@@ -994,7 +994,7 @@
                  xstring Name = t.getAttribute(L"Name");
                  if(Names==L"") 
                     Names = Name;
                  else if(Names.find(Name) < 0) Names+=L",L"+Name;
                  else if(Names.find(Name) < 0) Names+=L","+Name;
               }
            }
            dw.SetItemString(dw.GetRow(),L"CMPersonnel",Names);
@@ -1059,7 +1059,7 @@
                  xstring Name = t.getAttribute(L"Name");
                  if(Names==L"") 
                     Names = Name;
                  else if(Names.find(Name) < 0) Names+=L",L"+Name;
                  else if(Names.find(Name) < 0) Names+=L","+Name;
               }
            }
            dw.SetItemString(dw.GetRow(),L"CMPersonnel",Names);
@@ -1202,7 +1202,7 @@
      {
         //xstring userno = publiccode::getUserNo();
         userno = xaserver::GetUserNo();
         if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701")
         if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618")
         {
            dw_detail.SetColumnProp(L"SalesPersonID",L"cellprotect",L"1");
            
@@ -1241,7 +1241,7 @@
         
         ApplyStatus=dw_detail.GetItemString(1,L"ApplyStatus");
         
         if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701")
         if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618")
         {
            if(ApplyStatus ==L"财务已审核")
            {