Tag:star pps and save core string .sh sys development text
private void Btnupload_click (object sender, EventArgs e) {if (! System.IO.File.Exists (LoadFile)) {MES. Pda. Core.Service.MessageServices.ShowWarm ("Please scan the data first and save!") "); Tbdelivery.focus (); Return } else {string mes = string. Empty; int successcount = 0; using (StreamReader sr = new StreamReader (LoadFile)) {String line; while (line = Sr. ReadLine ()) = null) {string[] ss = line. Split (', '); if (ss. Length > 0) {list<string> ls = new list<string> (); Ls. ADD (Ss[0]); Ls. ADD (Ss[1]); Ls. ADD (ss[2]); String sql = "{? =call apps.cux_pda_load_scan_utl.data_load (" + STrutil.buildpara (LS) + ")}"; Mes. Pda. Core.Service.MessageServices.ShowWarm (SQL); Return string ret = (string) MES. Pda. Core.Service.DatabaseAccessService.execute (SQL, returntype.string); if (!ret. StartsWith ("[email protected]")) {mes + = ret + ", data is delive RY_ID: "+ ss[0]. ToString () + ", item_id:" + ss[0]. ToString () + ". Lot_num: "+ ss[2]. ToString (); Mes + = "\ r \ n"; } else {successcount = Successcount + 1; }}}} string sql1 = "{? =call Apps.cux_pda_load_ Scan_utl.end_data_load (' "+ tbDelivery.Text.Trim () +" ')} "; Mes. Pda. Core.Service.MessageServices.ShowWarm (SQL); Return String ret1 = (string) MES. Pda. Core.Service.DatabaseAccessService.execute (SQL1, returntype.string); if (!ret1. StartsWith ("[email protected]")) {mes + = ' Change delivery order download status failed!"+ Ret1; } mes = "Data upload succeeded:" + successcount.tostring () + "bar.
\ r \ n "+ mes; Mes. Pda. Core.Service.MessageServices.ShowWarm (MES); System.IO.File.Delete (LoadFile); System.IO.File.Delete (Downfile); } }
PDA Development data uploaded locally to db