Ejemplo n.º 1
0
        private void FrmBomNo_Load(object sender, EventArgs e)
        {
            #region 添加应用程序
            if (this.sMain.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


            ListGroup = new Craftparameterurl(GetCraftparameterurl);
            ListGroup.BeginInvoke(null, null);

            ListBom = new BomNumberList(GetBomNumberList);
            ListBom.BeginInvoke(null, null);

            ListKeyParts = new KeyPartsList(GetKeyPartsList);
            ListKeyParts.BeginInvoke(null, null);


            #region 单元格交替颜色
            this.dgvshowlist.RowsDefaultCellStyle.BackColor            = Color.Bisque;
            this.dgvshowlist.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige;
            #endregion
        }
Ejemplo n.º 2
0
 private void FrmKeyParts_Load(object sender, EventArgs e)
 {
     ListKeyParts = new KeyPartsList(GetKeyPartsList);
     ListKeyParts.BeginInvoke(null, null);
 }