public Form GetForm(string frmName) { Form ret = null; switch (frmName) { case "KQInOutMode": ShowKQInOutMode(); break; case "KQRule": ret = new frmKQRule(); //ShowKQRule(); break; case "KQRuleCalc": ret = new frmKQRuleCalc(); //ShowKQRuleCalc(); break; case "KQRuleEmp": ret = new frmKQRuleEmp(); //ShowKQRuleEmp(); break; case "KQRuleDepart": ret = new frmKQRuleDepart(); //ShowKQRuleDepart(); break; case "KQShift": ret = new frmKQShift(); //ShowKQShift(); break; case "KQShiftRule": ret = new frmKQShiftRule(); //ShowKQShiftRule(); break; case "KQEmpShift": ret = new frmKQEmpShift(); break; case "KQDepShift": ret = new frmKQDepShift(); break; case "KQHoliday": ret = new frmKQHoliday(); break; case "KQEmpDayOff": ret = new frmKQEmpDayOff(); break; case "KQEmpOtSure": ret = new frmKQEmpOtSure(); break; case "KQEmpSignCard": ret = new frmKQEmpSignCard(); break; case "KQDataAssay": ShowKQDataAssay(); break; //case "KQReportMJData": // ret = new frmKQReportMJData(); // break; case "KQReportData": ret = new frmKQReportData(); break; case "KQReportDataFilter": ret = new frmKQReportDataFilter(); break; case "KQReportMonthDetail": ret = new frmKQReportMonthDetail(); break; case "KQReportRecords": ret = new frmKQReportRecords(); break; case "KQReportDay": ret = new frmKQReportDay(); break; case "KQReportMonth": ret = new frmKQReportMonth(); break; case "KQReportTotal": ret = new frmKQReportTotal(); break; case "KQReportWeek": ret = new frmKQReportWeek(); break; case "KQWeekReportTotal": ret = new frmKQWeekReportTotal(); break; } return(ret); }
private void ShowKQRuleDepart() { frmKQRuleDepart frm = new frmKQRuleDepart(); frm.ShowDialog(); }