protected override void Add() { base.Add(); HRM_DEPARTMENT hRMDEPARTMENT = new HRM_DEPARTMENT(); this.txtID.Text = hRMDEPARTMENT.NewID(); this.txtNAME.Focus(); }
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"; }
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"; } }