コード例 #1
0
ファイル: StoreInPlan.cs プロジェクト: swankham/Epicoil
        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);
        }
コード例 #2
0
ファイル: MainMPI.cs プロジェクト: swankham/Epicoil
        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();
            }
        }
コード例 #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);
 }
コード例 #4
0
ファイル: MCSSDashborad.cs プロジェクト: swankham/Epicoil
 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;
     }
 }
コード例 #5
0
ファイル: MainMPI.cs プロジェクト: swankham/Epicoil
 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();
 }