private void Frmwarehouse_Load(object sender, EventArgs e) { #region 添加应用程序 if (this.mFrm.gUserInfo.rolecaption == "系统开发员") { IList <IDictionary <string, object> > lsfunls = new List <IDictionary <string, object> >(); FrmBLL.publicfuntion.GetFromCtls(this, ref lsfunls); Dictionary <string, object> dic = new Dictionary <string, object>(); dic.Add("PROGID", this.Name); dic.Add("PROGNAME", this.Text); dic.Add("PROGDESC", this.Text); FrmBLL.publicfuntion.AddProgInfo(dic, lsfunls); } #endregion dls = new delegateloadstore(LoadFunc); dls.BeginInvoke(null, null); //try //{ // dgv_warehouseinfo.DataSource = refWebtStorehouseManage.Instance.GetAlltStorehouseInfo(); // DataTable dt; // dt = refWebtStorehouseManage.Instance.GettStorehouseType(); // foreach (DataRow dr in dt.Rows) // { // this.cb_storetype.Items.Add(dr["storehousetype"].ToString()); // } //} //catch (Exception ex) //{ // mFrm.ShowPrgMsg(ex.Message, MainParent.MsgType.Error); //} }
private void StoreLocManage_Load(object sender, EventArgs e) { #region 添加应用程序 if (this.mFrm.gUserInfo.rolecaption == "系统开发员") { IList <IDictionary <string, object> > lsfunls = new List <IDictionary <string, object> >(); FrmBLL.publicfuntion.GetFromCtls(this, ref lsfunls); Dictionary <string, object> dic = new Dictionary <string, object>(); dic.Add("PROGID", this.Name); dic.Add("PROGNAME", this.Text); dic.Add("PROGDESC", this.Text); FrmBLL.publicfuntion.AddProgInfo(dic, lsfunls); } #endregion dls = new delegateloadstore(loadstore); dls.BeginInvoke(null, null); //dgv_storeinfo.DataSource = refWebtStorehouseManage.Instance.GetAlltStorehouseInfo(); }