コード例 #1
0
        protected override void Add()
        {
            base.Add();
            HRM_DEPARTMENT hRMDEPARTMENT = new HRM_DEPARTMENT();

            this.txtID.Text = hRMDEPARTMENT.NewID();
            this.txtNAME.Focus();
        }
コード例 #2
0
        public xfmDepartmentAdd(Actions Action)
        {
            this.InitializeComponent();
            this.Init();
            this.ucAdd.Status = Action;
            HRM_DEPARTMENT hRMDEPARTMENT = new HRM_DEPARTMENT();

            this.ucAdd.SetData(hRMDEPARTMENT.NewID());
            this.Text = "Thêm";
        }
コード例 #3
0
 public xfmDepartmentAdd(Actions Action, string BranchCode)
 {
     this.InitializeComponent();
     this.Init();
     this.ucAdd.Status = Action;
     if (Action == Actions.Add)
     {
         HRM_DEPARTMENT hRMDEPARTMENT = new HRM_DEPARTMENT();
         this.ucAdd.SetData(hRMDEPARTMENT.NewID());
         if (BranchCode != "")
         {
             this.ucAdd.SetBranchCode(BranchCode);
         }
         this.Text = "Thêm";
     }
 }