Example #1
0
        private void StoreInPlan_Load(object sender, EventArgs e)
        {
            if (epiSession.SessionID == null)
            {
                Login frm = new Login();
                frm.ShowDialog();
            }
            else if (epiSession.SessionID == "x")
            {
                this.Close();
                this.Dispose();
                Environment.Exit(1);
            }
            else
            {
                this.Text = epiSession.PlantName;

                if (HeadContent.StoreInPlanId == 0)
                {
                    HeadContent.InvoiceDate = DateTime.Now;
                    HeadContent.ETADate = DateTime.Now;
                    HeadContent.ETDDate = DateTime.Now;
                }
                else
                {
                    txtStoreInPlanNum.Text = HeadContent.StoreInPlanNum;
                    SetHeaderContent(HeadContent);
                }
                ModelClone = (StoreInPlanHead)HeadContent.Clone();

                LockHeaderControl();
                return;
            }
            StoreInPlan_Load(sender, e);
        }
Example #2
0
        private void ributLogOff_Click(object sender, EventArgs e)
        {
            Login frm = new Login();
            frm.ShowDialog();

            if (epiSession != null)
            {
                this.Text = epiSession.PlantName;
                trvMenu.Nodes.Clear();
                AddMenu();
            }
        }
Example #3
0
 private void ImexConfirmCheckList_Load(object sender, EventArgs e)
 {
     if (epiSession.SessionID == null)
     {
         Login frm = new Login();
         frm.ShowDialog();
     }
     else
     {
         this.Text = epiSession.PlantName;
         dtpInvoiceDateFrom.Value = DateTime.Now.AddDays(-10);
         dtpInvoiceDateTo.Value = DateTime.Now.AddDays(+1);
         return;
     }
     ImexConfirmCheckList_Load(sender, e);
 }
Example #4
0
 private void MCSSDashborad_Load(object sender, EventArgs e)
 {
     ResetData();
     if (epiSession.SessionID == null)
     {
         Login frm = new Login();
         frm.ShowDialog();
         MCSSDashborad_Load(sender, e);
     }
     else if (epiSession.SessionID == "x")
     {
         Application.Exit();
     }
     else
     {
         this.Text = epiSession.CompanyName;
         ResetData();
         return;
     }
 }
Example #5
0
 private void MainMPI_Load(object sender, EventArgs e)
 {
     if (epiSession.SessionID == null)
     {
         Login frm = new Login();
         frm.ShowDialog();
         if (epiSession != null)
         {
             this.Text = epiSession.PlantName;
         }
         else
         {
             return;
         }
     }
     else
     {
         this.Text = epiSession.PlantName;
         return;
     }
     AddMenu();
     trvMenu.ExpandAll();
 }