private void btCreate_Click() { this.GetMonthYear(0); xfmSalaryTableListAdd _xfmSalaryTableListAdd = new xfmSalaryTableListAdd(this.m_Month, this.m_Year); _xfmSalaryTableListAdd.Created += new xfmSalaryTableListAdd.CreateSuccess((object s) => this.RaiseCreatedHandler()); _xfmSalaryTableListAdd.Size = base.Size; _xfmSalaryTableListAdd.ShowDialog(); }
private void CheckSalaryTableList() { HRM_SALARY_TABLELIST hRMSALARYTABLELIST = new HRM_SALARY_TABLELIST(); if (hRMSALARYTABLELIST.Exist(this.m_Month, this.m_Year)) { hRMSALARYTABLELIST.Get(this.m_Month, this.m_Year); this.m_SalaryTableListID = hRMSALARYTABLELIST.SalaryTableListID; this.m_IsLock = hRMSALARYTABLELIST.IsLock; this.m_IsFinish = hRMSALARYTABLELIST.IsFinish; this.Customize(); this.LoadGrid(); } else { if (this._exportControl != null) { this._exportControl.DataSource = null; } this.m_IsLock = false; this.m_IsFinish = false; this.m_SalaryTableListID = Guid.Empty; this.Customize(); LabelControl labelControl = this.lbSalaryName; string[] str = new string[] { "Dữ liệu tính lương tháng ", this.m_Month.ToString(), " - ", this.m_Year.ToString(), " này không tồn tại!" }; labelControl.Text = string.Concat(str); this.lbMessage.Text = "Dữ liệu tính lương tháng này không tồn tại trong cơ sở dữ liệu của chương trình!"; if (!this.m_IsFirstLoad) { this.m_IsFirstLoad = true; } else { xfmSalaryTableListAdd _xfmSalaryTableListAdd = new xfmSalaryTableListAdd(this.m_Month, this.m_Year); _xfmSalaryTableListAdd.Created += new xfmSalaryTableListAdd.CreateSuccess((object s) => this.Reload()); _xfmSalaryTableListAdd.ShowDialog(); } } }