예제 #1
0
        private void btnUserChange_Click(object sender, EventArgs e)
        {
            frmFirstPage        = null;
            frmSalesPriceManage = null;
            frmMatPriceManage   = null;
            frmProductManage    = null;
            frmBOM = null;
            frmImportInspection = null;
            frmProdInspection   = null;
            frmCheckHistory     = null;
            frmPDStock          = null;
            frmShift            = null;
            frmBOR        = null;
            frmCheckList  = null;
            frmCompany    = null;
            frmDepartment = null;
            frmMachine    = null;
            frmUser       = null;
            frmWarehouse  = null;
            frmIcStatus   = null;
            frmIcWait     = null;
            frmOStatus    = null;
            frmSales      = null;
            frmShipment   = null;
            frmSO         = null;
            frmPS         = null; //생산실적 현황
            frmWOR        = null; //작업지시 등록
            frmDR         = null; //불량관리 등록/수정
            frmDS         = null; //불량처리현황
            frmAuthority  = null; //권한관리

            this.Close();
        }
예제 #2
0
 public static frmShift CreateShift(bool Authority)
 {
     if (frmShift == null)
     {
         frmShift = new frmShift(Authority);
     }
     return(frmShift);
 }
예제 #3
0
        private void btnAddShiftOver_Click(object sender, EventArgs e)
        {
            frmShift frm = new frmShift(1);

            frm.ShowDialog();
            PopulateShift();
            selectedRow = -1;
            tableModel1.Selections.Clear();
        }
예제 #4
0
 private void lvwShift_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.Clicks == 2)
     {
         if (lvwShift.SelectedIndicies.Length > 0)
         {
             frmShift shift = new frmShift();
             shift.DsOverTime   = dsShift;
             shift.CurrentShift = selectedRow;
             shift.ShowDialog();
             PopulateShift();
         }
         selectedRow = -1;
         tableModel1.Selections.Clear();
     }
 }
예제 #5
0
 private void btnEditShiftOver_Click(object sender, EventArgs e)
 {
     if (selectedRow < 0)
     {
         string str  = WorkingContext.LangManager.GetString("frmListShift_Edit_Messa");
         string str1 = WorkingContext.LangManager.GetString("frmListShift_Edit_Title");
         //MessageBox.Show("Bạn chưa chọn ca cần sửa!", "Sửa ca", MessageBoxButtons.OK,  MessageBoxIcon.Exclamation);
         MessageBox.Show(str, str1, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         frmShift shift = new frmShift();
         shift.DsShiftOverTime = dsShiftOver;
         shift.CurrentShift    = selectedRow;
         shift.ShowDialog();
         PopulateShift();
     }
     selectedRow = -1;
     tableModel1.Selections.Clear();
 }