public System.Data.DataTable GetAllList() { JsonRequest r = new JsonRequest(); r.request("/bank?t=get_list"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } DataTable tb = r.GetDataTable(); tb.Columns.Add("状态"); tb.Columns.Add("name"); foreach (DataRow dr in tb.Rows) { dr["name"] = NPinyin.Pinyin.GetInitials(dr["visa_nm"].ToString()); if (dr["display_flag"].ToString().Equals("1")) { dr["状态"] = "已启用"; } else if (dr["display_flag"].ToString().Equals("0")) { dr["状态"] = "已禁用"; } } return(tb); }
public System.Data.DataTable GetAllList(string code) { JsonRequest r = new JsonRequest(); r.Write("par_code", code); r.request("/branch?t=get_list_by_par_code"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } DataTable tb = r.GetDataTable(); tb.Columns.Add("状态"); foreach (DataRow dr in tb.Rows) { if (dr["display_flag"].ToString().Equals("1")) { dr["状态"] = "已启用"; } else if (dr["display_flag"].ToString().Equals("0")) { dr["状态"] = "已禁用"; } } return(tb); }
public void Update() { JsonRequest r = new JsonRequest(); r.request("/update?t=Update"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void UpdateDefault(sys_t_print_style_default style) { JsonRequest r = new JsonRequest(); r.Write("style", style); r.request("/print?t=UpdateDefault"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void UpdateStyleData(List <sys_t_print_style_data> lis) { JsonRequest r = new JsonRequest(); r.Write("lis", lis); r.request("/print?t=UpdateStyleData"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void update(Model.sys_t_system sys) { JsonRequest r = new JsonRequest(); r.Write <Model.sys_t_system>(sys); r.request("/sys?t=update"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
void ICheckBLL.CheckPCSheet(ic_t_check_init ini) { JsonRequest r = new JsonRequest(); r.Write("ini", ini); r.request("/check?t=CheckPCSheet"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Upload(Model.bi_t_bank_info bank) { JsonRequest r = new JsonRequest(); r.Write <bi_t_bank_info>(bank); r.request("/bank?t=change"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Add(Model.bi_t_people_info peo) { JsonRequest r = new JsonRequest(); r.Write <bi_t_people_info>(peo); r.request("/people?t=add"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Upload(bi_t_item_cls itemcls) { JsonRequest r = new JsonRequest(); r.Write <bi_t_item_cls>(itemcls); r.request("/item_cls?t=change"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Upload(Model.bi_t_payment_info pay) { JsonRequest r = new JsonRequest(); r.Write <bi_t_payment_info>(pay); r.request("/payment?t=change"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Del(string oper_id) { JsonRequest r = new JsonRequest(); r.Write("oper_id", oper_id); r.request("/oper?t=Del"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Add(sa_t_operator_i oper) { JsonRequest r = new JsonRequest(); r.Write <sa_t_operator_i>(oper); r.request("/oper?t=add"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void DelOperType(sa_t_oper_type type) { JsonRequest r = new JsonRequest(); r.Write("type", type); r.request("/oper?t=DelOperType"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
void IMyDestop.deleteMyLove(sys_t_oper_mylove mylove) { JsonRequest r = new JsonRequest(); r.Write <sys_t_oper_mylove>("mylove", mylove); r.request("/mydestop?t=deleteMyLove"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void SaveGroup(List <bi_t_supcust_group> lis) { JsonRequest r = new JsonRequest(); r.Write("lis", lis); r.request("/supcust_group?t=SaveGroup"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Del(sys_t_print_style style) { JsonRequest r = new JsonRequest(); r.Write("style", style); r.request("/print?t=Del"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Del(Model.bi_t_supcust_info sup) { JsonRequest r = new JsonRequest(); r.Write("supcust_no", sup.supcust_no); r.request("/cus?t=delete"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Upload(bi_t_region_info region) { JsonRequest r = new JsonRequest(); r.Write <bi_t_region_info>(region); r.request("/region?t=change"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Update(Model.bi_t_item_info item) { JsonRequest r = new JsonRequest(); r.Write <bi_t_item_info>(item); r.request("/item?t=change"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
void ICheckBLL.UpdateCheckFinish(List <ic_t_check_finish> finishs) { JsonRequest r = new JsonRequest(); r.Write <ic_t_check_finish>("finishs", finishs); r.request("/check?t=UpdateCheckFinish"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void DelJH(netsetup ns) { JsonRequest r = new JsonRequest(); r.Write("ns", ns); r.request("/sys?t=DelJH"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Add(Model.bi_t_supcust_info sup) { JsonRequest r = new JsonRequest(); r.Write <bi_t_supcust_info>(sup); r.request("/cus?t=add"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Del(Model.bi_t_people_info peo) { JsonRequest r = new JsonRequest(); r.Write("oper_id", peo.oper_id); r.request("/people?t=delete"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Del(Model.bi_t_item_info item) { JsonRequest r = new JsonRequest(); r.Write("item_no", item.item_no); r.request("/item?t=delete"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Upload(bi_t_dept_info dept) { JsonRequest r = new JsonRequest(); r.Write <bi_t_dept_info>(dept); r.request("/dep?t=change"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void SaveGrant(List <sa_t_oper_grant> grant) { JsonRequest r = new JsonRequest(); r.Write("grant", grant); r.request("/sys?t=SaveGrant"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Add(Model.bi_t_branch_info branch) { JsonRequest r = new JsonRequest(); r.Write <bi_t_branch_info>(branch); r.request("/branch?t=add"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void updateDic(Dictionary <string, sys_t_system> sys_dic) { JsonRequest r = new JsonRequest(); r.Write <sys_t_system>(sys_dic); r.request("/sys?t=updateDic"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
void ICheckBLL.CheckPDSheet(string sheet_no) { JsonRequest r = new JsonRequest(); r.Write("sheet_no", sheet_no); r.request("/check?t=CheckPDSheet"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }