Exemplo n.º 1
0
        private void BtnLogIn_Click(object sender, EventArgs e)
        {
            MMCodeHelper CodeHelper = new MMCodeHelper("LOGIN");

            CodeHelper.ShowDialog();
            Program.CurrentUser = CodeHelper.ReturnCodeValue;
            //2019-05-14 황지희 사용자 이름으로 보여주게 변경
            lblCrrUser.Text = CommonFuction.GetUserName(Program.CurrentUser);
        }
Exemplo n.º 2
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     SetEvent();
     System.Configuration.AppSettingsReader temp = new System.Configuration.AppSettingsReader();
     lblCrrUser.Text = CommonFuction.GetUserName(Program.CurrentUser);
     if (string.IsNullOrEmpty(Program.CurrentUser))
     {
         BtnLogIn_Click(null, null);
     }
     mMManagedReportControl = new MMManagedReportControl();
     MMManagedReportTabPage.Controls.Add(mMManagedReportControl);
     ResetRackStatus(true);
 }
Exemplo n.º 3
0
        public string SetMaskDatas(string RackId)
        {
            DataSet ds = new DataSet();

            ds = conn.CallSelectProcedure_ds(ProcedureName, new SqlParameter[] { new SqlParameter("rackid", RackId) });

            if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                DataRow dr = ds.Tables[0].Rows[0];
                lblDataMaskID.Text    = dr["durableid"].ToString();
                lblDataModelName.Text = dr["durableproductname"].ToString();
                lblDataRackID.Text    = dr["equipmentid"].ToString();
                lblDataInputInsp.Text = dr["inputresult"].ToString();
                if (!CommonFuction.IsNullOrWhiteSpace(dr["inputdate"]))
                {
                    lblDataInputDate.Text = dr["inputdate"].ToString();
                }
                else
                {
                    lblDataInputDate.Text = "";
                }
                if (!CommonFuction.IsNullOrWhiteSpace(dr["usedate"]))
                {
                    lblDataRecentUse.Text = dr["usedate"].ToString();
                }
                else
                {
                    lblDataRecentUse.Text = "";
                }
                if ((int)dr["totuseqty"] > 0)
                {
                    lblDataTotalUse.Text = dr["totuseqty"].ToString();
                }
                else
                {
                    lblDataTotalUse.Text = "";
                }
                lblDataCleanInsp.Text   = dr["cleanresult"].ToString();
                lblDataDescription.Text = dr["description"].ToString();
            }

            return(ds.Tables.Count.ToString());
        }