/// <summary> /// 保存OrderDep01 /// </summary> /// <param name="SHOP_ID"></param> /// <param name="ordder_id"></param> /// <returns></returns> public string SaveOrderDep01(string SHOP_ID, string ordder_id) { string result = ""; try { var orddep01Model = new ORDER_DEP01(); orddep01Model.ORDDEP_ID = ordder_id; orddep01Model.SHOP_ID = SHOP_ID; orddep01Model.USABLE = 1; orddep01Model.Meno = ""; var OlUser = OnlineUsersBll.GetInstence().GetModelForCache(x => x.UserHashKey == Session[OnlineUsersTable.UserHashKey].ToString()); orddep01Model.MOD_DATETIME = DateTime.Now; orddep01Model.MOD_USER_ID = OlUser.Manager_LoginName; orddep01Model.CRT_USER_ID = OlUser.Manager_LoginName; orddep01Model.CRT_DATETIME = DateTime.Now; orddep01Model.LAST_UPDATE = DateTime.Now; ORDER_DEP01Bll.GetInstence().Save(this, orddep01Model); } catch (Exception err) { result = "报错出错:" + err.Message + Environment.NewLine; } return(result); }
public void LoadOrderDep01(string ORDDER_ID) { if (String.IsNullOrEmpty(ORDDER_ID)) { Grid4.DataSource = null; Grid5.DataSource = null; Grid4.DataBind(); Grid5.DataBind(); } ORDER_DEP01Bll.GetInstence().BandGrid(this, Grid4, 1, ORDDER_ID); ORDER_DEP01Bll.GetInstence().BandGrid(this, Grid5, 2, ORDDER_ID); }
/// <summary> /// 移除可选分店清单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void MoveToRight(object sender, EventArgs e) { string ordder_id = hidORDDEP_ID.Text; int id = ConvertHelper.Cint(GridViewHelper.GetSelectedKey(Grid4, true)); try { //删除记录 ORDER_DEP01Bll.GetInstence().Delete(this, id); } catch (Exception err) { FineUI.Alert.ShowInParent("删除失败:" + err.Message, FineUI.MessageBoxIcon.Information); } LoadOrderDep01(ordder_id); }
/// <summary> /// 移除全部可选分店清单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void MoveAllToRight(object sender, EventArgs e) { string ordder_id = hidORDDEP_ID.Text; //string result = ""; for (int i = 0; i < Grid4.Rows.Count; i++) { try { Object[] rowDataKeys = Grid4.DataKeys[i]; int Id = ConvertHelper.Cint(rowDataKeys[0].ToString()); ORDER_DEP01Bll.GetInstence().Delete(this, Id); } catch (Exception err) { continue; } } LoadOrderDep01(ordder_id); }