예제 #1
0
        private void Frm_RepairMain_Load(object sender, EventArgs e)
        {
            try
            {
                #region 添加应用程序
                if (this.sFrm.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
            }
            catch (Exception ex)
            {
                this.sFrm.ShowPrgMsg(ex.Message, MainParent.MsgType.Error);
            }

            M_sThisRepairer = sFrm.gUserInfo.userId;
            Initialization();
            AddDgvColnum();
            txt_Repairer.Text              = sFrm.gUserInfo.username;
            this.imbt_Finish.Enabled       = false;
            this.imbt_UpdateRepair.Enabled = false;
            this.imbt_addNewRC.Enabled     = false;
            Frm_InputSn Fis = new Frm_InputSn(this);
            Fis.ShowDialog();
        }
예제 #2
0
        private void imbt_Close_Click(object sender, EventArgs e)
        {
            Initialization();
            dgvNgCount.Rows.Clear();
            dgvRepair.Rows.Clear();
            List_DicMaterial.Clear();
            this.imbt_Finish.Enabled       = false;
            this.imbt_UpdateRepair.Enabled = false;
            this.imbt_addNewRC.Enabled     = false;
            Frm_InputSn fis = new Frm_InputSn(this);

            fis.ShowDialog();
        }