xj qian
2024-09-06 9786b6898c79f5de9ca7eeb168fe4b6f5b0d173f
jrj/project/business/VATNotify/list.vatnotify.cpp
@@ -69,8 +69,7 @@
         xaserverarg arg;
         if (colname == L"SONo")
         {
            xstring SONo = dw_list.GetItemString(row, colname);
            ;
            xstring SONo = dw_list.GetItemString(row, colname.c_str());
            
            arg.AddArg(L"EntityNo", SONo);
            arg.AddArg(L"ReadOnly", L"true");
@@ -78,8 +77,7 @@
         }
         if (colname == L"InvoiceNo")
         {
            xstring InvoiceNo = dw_list.GetItemString(row, colname);
            ;
            xstring InvoiceNo = dw_list.GetItemString(row, colname.c_str());
            
            arg.AddArg(L"EntityNo", InvoiceNo);
            arg.AddArg(L"ReadOnly", L"true");
@@ -90,7 +88,7 @@
      int OnPrint()
      {
         xaserverarg& arg = *new xaserverarg;
         xaserverarg arg ;
         
         arg.AddArg(L"EntityName", L"VATNotify");
         arg.AddArg(L"EntityID", L"", L"");
@@ -110,13 +108,13 @@
         arg.AddArg(L"VATNotifyID", L"");
         trace(InvoiceNo + L"==1" + NInvoiceNoEx + L"==2" + SupplierID + L"==3" + dw_list.GetGuid(dw_list.GetRow()));
         
         openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg);
         openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg);
         return 1;
      }
      int OnPrintItem()
      {
         xaserverarg& arg = *new xaserverarg;
         xaserverarg arg;
         
         arg.AddArg(L"EntityName", L"VATNotify");
         arg.AddArg(L"EntityID", L"", L"");
@@ -136,7 +134,7 @@
         arg.AddArg(L"VATNotifyID", dw_list.GetGuid(dw_list.GetRow()));
         trace(L"=====L" + InvoiceNo + L"=====L" + SupplierID + L"=====L" + dw_list.GetGuid(dw_list.GetRow()));
         
         openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg);
         openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg);
         return 1;
      }
@@ -289,7 +287,7 @@
         int h = xcombobox::GetCurSel(evt->command.hCtrl);
         if (h > -1)
         {
            xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h);
            xstring txt = (string)xcombobox::GetLBText(evt->command.hCtrl, h);
            if (txt == L"通知日期")
            {
@@ -338,7 +336,7 @@
         {
            //trace(x.xml);
            KXMLDOMElement ele = x.documentElement();
            if (dw_pages.ptr_native_)
            if (dw_pages.getNativePointer())
            {
               if (ele.selectSingleNode(L"@TotalPage"))
               {