|  |  | 
 |  |  |          return xcombobox::GetLBText(cbx_type.GetHWND(), h); | 
 |  |  |       } | 
 |  |  |  | 
 |  |  |       xstring GetEntityName(int pr) | 
 |  |  |       xstring GetEntityName(LPARAM pr) | 
 |  |  |       { | 
 |  |  |          return L"AP3"; | 
 |  |  |       } | 
 |  |  |  | 
 |  |  |       xstring GetEntityIDName(int /*param*/ pr) | 
 |  |  |       xstring GetEntityIDName(LPARAM /*param*/ pr) | 
 |  |  |       { | 
 |  |  |          return L"APID"; | 
 |  |  |       } | 
 |  |  |  | 
 |  |  |       xstring GetEntityID(int /*param*/ pr) | 
 |  |  |       xstring GetEntityID(LPARAM /*param*/ pr) | 
 |  |  |       { | 
 |  |  |          return dw_list.GetItemString(dw_list.GetRow(), L"APID"); | 
 |  |  |       } | 
 |  |  |  | 
 |  |  |       int ViewUpdate(int pr, xstring updateItem, xaserverarg  arg) | 
 |  |  |       int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg  arg) | 
 |  |  |       { | 
 |  |  |          if (updateItem == L"del") | 
 |  |  |          { | 
 |  |  | 
 |  |  |             if (row < 1) return 1; | 
 |  |  |             KXMLDOMElement ele = dw_list.GetRowElement(row); | 
 |  |  |             xstring APID = ele.selectSingleNode(L"APID").text(); | 
 |  |  |             ele.Release(); | 
 |  |  | 				 | 
 |  |  |             xaserverarg arg; | 
 |  |  |              | 
 |  |  |             arg.AddArg(L"APID", APID); | 
 |  |  | 
 |  |  |          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); | 
 |  |  |             apType = L"---"; | 
 |  |  |             if (txt == L"已付货款") | 
 |  |  |             { | 
 |  |  | 
 |  |  |             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"出运日期") | 
 |  |  |                { | 
 |  |  |                   apType = L"000"; | 
 |  |  | 
 |  |  |             int h1 = xcombobox::GetCurSel(evt->command.hCtrl); | 
 |  |  |             if (h1 > -1) | 
 |  |  |             { | 
 |  |  |                xstring txt1 = xcombobox::GetLBText(evt->command.hCtrl, h1); | 
 |  |  |                xstring txt1 = (string)xcombobox::GetLBText(evt->command.hCtrl, h1); | 
 |  |  |                if (txt1 == L"出运日期") | 
 |  |  |                { | 
 |  |  |                   apType = L"001"; | 
 |  |  | 
 |  |  |             int h2 = xcombobox::GetCurSel(evt->command.hCtrl); | 
 |  |  |             if (h2 > -1) | 
 |  |  |             { | 
 |  |  |                xstring txt2 = xcombobox::GetLBText(evt->command.hCtrl, h2); | 
 |  |  |                xstring txt2 = (string)xcombobox::GetLBText(evt->command.hCtrl, h2); | 
 |  |  |                if (txt2 == L"出运日期") | 
 |  |  |                { | 
 |  |  |                   apType = L"001"; | 
 |  |  | 
 |  |  |          xml x ; | 
 |  |  |           | 
 |  |  |          xaserverarg arg; | 
 |  |  | 			 | 
 |  |  |          arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText()); | 
 |  |  |          xstring queryText = xcontrol(GetControl(L"sle_search")).GetText(); | 
 |  |  |          arg.AddArg(L"QueryTxt", queryText); | 
 |  |  |          arg.AddArg(L"APType", APType); | 
 |  |  |          arg.AddArg(L"QueryArg", GetQueryArg()); | 
 |  |  |          arg.AddArg(L"DatePicker", DatePicker); |