void IInOutBLL.ChangeCGOrder(co_t_order_main ord, List <co_t_order_child> lines) { Helper.JsonRequest r = new Helper.JsonRequest(); r.Write(ord); r.Write("lines", lines); r.request("/inout?t=change_cgorder"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
void IInOutBLL.DeleteCGOrder(string sheet_no, DateTime update_time) { Helper.JsonRequest r = new Helper.JsonRequest(); r.Write("sheet_no", sheet_no); r.Write("update_time", update_time); r.request("/inout?t=delete_cgorder"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
void IBLL.IInOutBLL.ChangeSaleSSSheet(Model.co_t_order_main ord, List <Model.co_t_order_child> lines) { Helper.JsonRequest r = new Helper.JsonRequest(); r.Write(ord); r.Write("lines", lines); r.request("/inout?t=change_salesssheet"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
void IInOutBLL.CheckCGOrder(string sheet_no, string approve_man, DateTime update_time) { Helper.JsonRequest r = new Helper.JsonRequest(); r.Write("sheet_no", sheet_no); r.Write("approve_man", approve_man); r.Write("update_time", update_time); r.request("/inout?t=check_cgorder"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
void IInOutBLL.AddCGOrder(co_t_order_main ord, List <co_t_order_child> lines, out string sheet_no) { Helper.JsonRequest r = new Helper.JsonRequest(); r.Write(ord); r.Write("lines", lines); r.request("/inout?t=add_cgorder"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } sheet_no = r.Read("sheet_no"); }
DataTable IInOutBLL.GetImportCGOrder() { Helper.JsonRequest r = new Helper.JsonRequest(); r.request("/inout?t=GetImportCGOrder"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } DataTable tb = r.GetDataTable(); return(tb); }
DataTable IInOutBLL.GetCGOrderList(DateTime date1, DateTime date2, string sup_no, string order_main) { Helper.JsonRequest r = new Helper.JsonRequest(); r.Write("date1", date1.Toyyyy_MM_dd()); r.Write("date2", date2.Toyyyy_MM_dd()); r.Write("sup_no", sup_no); r.Write("order_main", order_main); r.request("/inout?t=get_cgorder_list"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } DataTable tb = r.GetDataTable(); return(tb); }
string ICommonBLL.IsServer(string ip, string port) { try { Helper.JsonRequest r = new Helper.JsonRequest(); r.request(ip, port, "/common?t=connect_server"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } string is_connect = r.Read("is_connect"); return(is_connect); } catch (Exception e) { return("0"); } }
void IInOutBLL.GetCGOrder(string sheet_no, out DataTable tb1, out DataTable tb2) { Helper.JsonRequest r = new Helper.JsonRequest(); r.Write("sheet_no", sheet_no); r.request("/inout?t=get_cgorder"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } tb1 = r.GetDataTable("tb1"); if (tb1 == null || tb1.Rows.Count < 1) { throw new Exception("不存在单据!"); } tb2 = r.GetDataTable("tb2"); }