protected override void Add() { base.Add(); HRM_GROUP hRMGROUP = new HRM_GROUP(); this.txtID.Text = hRMGROUP.NewID(); this.txtNAME.Focus(); }
public xfmGroupAdd(Actions Action) { this.InitializeComponent(); this.Init(); this.ucAdd.Status = Action; HRM_GROUP hRMGROUP = new HRM_GROUP(); this.ucAdd.SetData(hRMGROUP.NewID()); this.Text = "Thêm"; }
public xfmGroupAdd(Actions Action, string BranchCode, string DepartmentCode) { this.InitializeComponent(); this.Init(); this.ucAdd.Status = Action; if (Action == Actions.Add) { HRM_GROUP hRMGROUP = new HRM_GROUP(); this.ucAdd.SetData(hRMGROUP.NewID()); if ((BranchCode == "" ? false : DepartmentCode != "")) { this.ucAdd.SetData(BranchCode, DepartmentCode); } this.Text = "Thêm"; } }