public async void GetAllLevel2(string level1_id = "") { try { gridLevel2.DataBindings.Clear(); PRO_tblLevel2DRO level2s = await PRO_tblLevel2BUS.GetAllLevel2(CommonEngine.userInfo.UserID, ConfigEngine.Language, level1_id, false, new DTO.Systems.SYS_tblActionLogDTO { Activity = BaseConstant.COMMAND_INSERT_EN, UserID = CommonEngine.userInfo.UserID, LanguageID = ConfigEngine.Language, ActionEN = BaseConstant.COMMAND_LOAD_ALL_DATA_EN, ActionVN = BaseConstant.COMMAND_LOAD_ALL_DATA_VI, FunctionID = "21", DescriptionVN = string.Format("Tài khoản '{0}' vừa tải thành công dữ liệu nhóm hàng.", CommonEngine.userInfo.UserID), DescriptionEN = string.Format("Account '{0}' downloaded successfully data of product group.", CommonEngine.userInfo.UserID) }); if (!CommonEngine.CheckValidResponseItem(level2s.ResponseItem)) { return; } gridLevel2.DataSource = level2s.Level2List != null ? level2s.Level2List : null; barBottom.Visible = (level2s.Level2List != null && level2s.Level2List.Count > 0) ? true : false; CommonEngine.LoadUserPermission("21", btnDelete, btnPrint, btnImport, btnExport); } catch (Exception ex) { CommonEngine.ShowExceptionMessage(ex); } }
public async void GetAllStall(string store_id, string warehouse_id) { try { gridStall.DataBindings.Clear(); PRO_tblStallDRO stalls = await PRO_tblStallBUS.GetAllStall(CommonEngine.userInfo.UserID, ConfigEngine.Language, false, store_id, warehouse_id, new SYS_tblActionLogDTO { Activity = BaseConstant.COMMAND_INSERT_EN, UserID = CommonEngine.userInfo.UserID, LanguageID = ConfigEngine.Language, ActionEN = BaseConstant.COMMAND_LOAD_ALL_DATA_EN, ActionVN = BaseConstant.COMMAND_LOAD_ALL_DATA_VI, FunctionID = "19", DescriptionVN = string.Format("Tài khoản '{0}' vừa tải thành công dữ liệu quầy bán.", CommonEngine.userInfo.UserID), DescriptionEN = string.Format("Account '{0}' downloaded successfully data of stalls.", CommonEngine.userInfo.UserID) }); if (!CommonEngine.CheckValidResponseItem(stalls.ResponseItem)) { return; } gridStall.DataSource = stalls.StallList != null ? stalls.StallList : null; barFooter.Visible = (stalls.StallList != null && stalls.StallList.Count > 0) ? true : false; CommonEngine.LoadUserPermission("19", btnDelete, btnPrint, btnImport, btnExport); } catch (Exception ex) { CommonEngine.ShowExceptionMessage(ex); } }
public async void GetAllUsers() { try { gridUser.DataBindings.Clear(); SYS_tblUserDRO users = new SYS_tblUserDRO(); users = await SYS_tblUserBUS.GetAllUsers(CommonEngine.userInfo.UserID, CommonEngine.userInfo.LanguageID, new SYS_tblActionLogDTO { Activity = BaseConstant.COMMAND_INSERT_EN, UserID = CommonEngine.userInfo.UserID, LanguageID = ConfigEngine.Language, ActionEN = BaseConstant.COMMAND_LOAD_ALL_DATA_EN, ActionVN = BaseConstant.COMMAND_LOAD_ALL_DATA_VI, FunctionID = "10", DescriptionVN = string.Format("Tài khoản '{0}' vừa tải thành công dữ liệu người dùng.", CommonEngine.userInfo.UserID), DescriptionEN = string.Format("Account '{0}' downloaded successfully data of users.", CommonEngine.userInfo.UserID) }); if (!CommonEngine.CheckValidResponseItem(users.ResponseItem)) { return; } gridUser.DataSource = users.UserList; barBottom.Visible = (users != null && users.UserList.Count > 0) ? true : false; CommonEngine.LoadUserPermission("10", btnDelete, btnPrint, btnImport, btnExport); } catch (Exception ex) { CommonEngine.ShowExceptionMessage(ex); } }
public async void GetAllProvinces() { try { gridProvince.DataBindings.Clear(); PRO_tblProvinceDRO list = await PRO_tblProvinceBUS.GetAllProvinces(CommonEngine.userInfo.UserID, CommonEngine.userInfo.LanguageID, false, new SYS_tblActionLogDTO { Activity = BaseConstant.COMMAND_INSERT_EN, UserID = CommonEngine.userInfo.UserID, LanguageID = ConfigEngine.Language, ActionEN = BaseConstant.COMMAND_LOAD_ALL_DATA_EN, ActionVN = BaseConstant.COMMAND_LOAD_ALL_DATA_VI, FunctionID = "8", DescriptionVN = string.Format("Tài khoản '{0}' vừa tải thành công dữ liệu tỉnh thành.", CommonEngine.userInfo.UserID), DescriptionEN = string.Format("Account '{0}' downloaded successfully data of provinces.", CommonEngine.userInfo.UserID) }); if (!CommonEngine.CheckValidResponseItem(list.ResponseItem)) { return; } gridProvince.DataSource = list.ProvinceList != null ? list.ProvinceList : null; barBottom.Visible = (list.ProvinceList != null && list.ProvinceList.Count > 0) ? true : false; CommonEngine.LoadUserPermission("8", btnDelete, btnPrint, btnImport, btnExport); } catch (Exception ex) { CommonEngine.ShowExceptionMessage(ex); } }
public uc_StoreDetail(uc_Store _parent_form, PRO_tblStoreDTO item = null) { CommonEngine.ShowWaitForm(this); InitializeComponent(); Initialize(); parent_form = _parent_form; if (item != null) { LoadDataToEdit(item); } CommonEngine.LoadUserPermission("13", txtStoreID, btnSaveClose, btnSaveInsert); }
public uc_GroupUserDetail(uc_GroupUser _parent_form, SYS_tblGroupUserDTO item = null) { CommonEngine.ShowWaitForm(this); InitializeComponent(); Initialize(); parent_form = _parent_form; if (item != null) { LoadDataToEdit(item); } CommonEngine.LoadUserPermission("9", txtGroupID, btnSaveClose, btnSaveInsert); }
public uc_UserDetail(uc_User _parent_form, SYS_tblUserDTO item = null, bool _isDuplicate = false) { CommonEngine.ShowWaitForm(this); InitializeComponent(); Initialize(item); parent_form = _parent_form; isDuplicate = _isDuplicate; if (item != null) { LoadDataToEdit(item); } CommonEngine.LoadUserPermission("10", txtUsername, btnSaveClose, btnSaveInsert, isDuplicate); }
public uc_GroupUserDetail() { InitializeComponent(); Initialize(); CommonEngine.LoadUserPermission("9", txtGroupID, btnSaveClose, btnSaveInsert); }
public uc_UserDetail() { InitializeComponent(); Initialize(null); CommonEngine.LoadUserPermission("10", txtUsername, btnSaveClose, btnSaveInsert); }
public uc_StoreDetail() { InitializeComponent(); CommonEngine.LoadUserPermission("13", txtStoreID, btnSaveClose, btnSaveInsert); }
public uc_DistrictDetail() { InitializeComponent(); Initialize(); CommonEngine.LoadUserPermission("12", txtDistrictID, btnSaveClose, btnSaveInsert); }
public uc_Level1Detail() { InitializeComponent(); Initialize(); CommonEngine.LoadUserPermission("20", txtLevel1ID, btnSaveClose, btnSaveInsert); }
public uc_WarehouseDetail() { InitializeComponent(); CommonEngine.LoadUserPermission("18", txtWarehouseID, btnSaveClose, btnSaveInsert); }
public uc_ProvinceDetail() { InitializeComponent(); Initialize(); CommonEngine.LoadUserPermission("8", txtProvinceID, btnSaveClose, btnSaveInsert); }