xj qian
2024-11-05 06a9a4b01cda9c380e52eb875d7bb7c1c874954a
jrj/project/business/AR/CustomerTran.AR.cpp
@@ -99,12 +99,12 @@
            if (str.length() != 36)
            {
               hdr.mask = DMS_CSSSTYLE;
               hdr.cssstyle = L"color:#ff0000";
               hdr.pCssStyle = (LPTSTR)L"color:#ff0000";
            }
            else if (str.find(L"-") != 8)
            {
               hdr.mask = DMS_CSSSTYLE;
               hdr.cssstyle = L"color:#ff0000";
               hdr.pCssStyle = (LPTSTR)L"color:#ff0000";
            }
         }
         return 1;
@@ -123,6 +123,7 @@
         //获取焦点事件,用于重置工具条
         AttachEvent(L"WM_SETFOCUS", (FEvent)&CustomerTranARView::OnSetFocus);
         AttachEvent(L"dw_list", L"DWV_ASKSTYLE", (FEvent)&CustomerTranARView::OnItemAskStyle);
         return 1;
      }
      int OnSave()
@@ -131,7 +132,7 @@
         xml x;
         
         xaserverarg arg ;
         arg.setNativePointer(arg.CreateInstance());
         dw_list.DwUpdateAllToEx(x);
         arg.AddArg(L"content", x.xml());
         if (getUrl(L"/sale/data/AR/update/tran/customer", arg.GetString(), x) != 1)
@@ -151,8 +152,8 @@
      {
         xml x;
         
         xaserverarg arg ;
         arg.setNativePointer(arg.CreateInstance());
         xaserverarg arg =GetArg();
         if (getUrl(L"/sale/data/AR/tran/customer", arg.GetString(), x) != 1)
         {
            trace(x.text());
@@ -168,6 +169,7 @@
      int onload()
      {
         SetArg();
         dw_list = GetControl(L"dw_list");
         dw_list.openUrl(L"/sale/view/AR/template/customertran");
         dw_list.SetAskStyle(true);