Exemplo n.º 1
0
        private void openInputForm(inputFormType type)
        {
            inputF inputDlg = null;

            switch (type)
            {
            case inputFormType.receiptIF:
                inputDlg = new lReceiptsInputF();
                break;

            case inputFormType.exterPayIF:
                inputDlg = new lExterPayInputF();
                break;

            case inputFormType.interPayIF:
                inputDlg = new lInterPayInputF();
                break;

            case inputFormType.salaryIF:
                inputDlg = new lSalaryInputF();
                break;
                //case inputFormType.advanceIF:
                //    inputDlg = new lAdvanceInputF();
                //    break;
            }

#if fullscreen_onload
            inputDlg.WindowState = FormWindowState.Maximized;
#endif
            inputDlg.ShowDialog();
        }
Exemplo n.º 2
0
        private void openInputForm(inputFormType type)
        {
            inputF inputDlg = null;

            switch (type)
            {
            //case inputFormType.receiptIF:
            //    inputDlg = new lReceiptsInputF();
            //    break;
            //case inputFormType.exterPayIF:
            //    inputDlg = new lExterPayInputF();
            //    break;
            //case inputFormType.interPayIF:
            //    inputDlg = new lInterPayInputF();
            //    break;
            //case inputFormType.salaryIF:
            //    inputDlg = new lSalaryInputF();
            //    break;
            //case inputFormType.advanceIF:
            //    inputDlg = new lAdvanceInputF();
            //    break;
            case inputFormType.taskIF:
                inputDlg = new lTaskInputF();
                break;

            case inputFormType.orderIF:
                //not open order when task DGV empty
                if (chkTaskDGV())
                {
                    inputDlg = new lOrderInputF();
                }
                else
                {
                    lConfigMng.ShowInputError("Không có CV nào trong bảng");
                }
                break;

            case inputFormType.approveIF:
                //not open order when task DGV empty
                if (chkTaskDGV())
                {
                    inputDlg = new lApproveInputF();
                }
                else
                {
                    lConfigMng.ShowInputError("Không có CV nào trong bảng");
                }
                break;
            }

#if fullscreen_onload
            inputDlg.WindowState = FormWindowState.Maximized;
#endif
            //chk error
            if (inputDlg != null)
            {
                inputDlg.ShowDialog();
            }
        }