public Form GetForm(string frmName) { Form ret = null; switch (frmName) { case "RSCardType": ret = new frmRSCardType(); break; case "RSDepositDiscount": ret = new frmRSDepositDiscount(); break; case "RSDepart": ret = new frmRSDepart(); break; case "RSEmp": ret = new frmRSEmp(); break; case "RSEmpDelete": ret = new frmRSEmpDelete(); break; case "RSEmpChart": ret = new frmRSEmpChart(); break; case "RSCardOpterDetail": ret = new frmRSCardOpterDetail(); break; case "RSCardOpterTotal": ret = new frmRSCardOpterTotal(); break; case "RSReportCustom": ret = new frmRSReport(); break; case "RSDimission": ret = new frmRSDimission(); break; case "RSHistoryCard": ret = new frmRSHistoryCard(); break; } return(ret); }
public void RSCardOprter(byte flag) { frmRSEmp frm = new frmRSEmp(); frm.InitRSEmp(); switch (flag) { case 0://·¢¿¨ frm.ShowCardFa(false); break; case 1://¹ÒʧµÇ¼Ç frm.ShowCardLoss(false, ""); break; case 2://½â¹ÒµÇ¼Ç frm.ShowCardRelieve(false); break; case 3://»»¿¨ frm.ShowCardChange(false); break; case 4://ÍË¿¨ frm.ShowCardRetirement(false); break; case 5://¿¨Æ¬ÐÞ¸´ frm.ShowCardRepair(false); break; case 6://²é¿¨ frm.ShowCardView(false); break; case 7://¸Ä¿¨ frm.ShowCardModify(false); break; case 8://ºÚÃûµ¥ frm.ShowCardBlack(false); break; } frm.Dispose(); frm = null; }