private void Init() { HRM_ORGANIZATION.SetToTwoLabel(MyLogin.Level, MyLogin.Code, this.lbMainName, this.lbSubName); this.bbeYear.EditValue = this.clsAllOption.MonthDefault; this.m_Year = this.clsAllOption.MonthDefault.Year; this.xucOrganization1.LoadData(); this.xucOrganization1.Selected += new xucOrganization.SelectedEventHander((object s, Organization o) => { this.m_Level = o.Level; this.m_Code = o.Code; HRM_ORGANIZATION.SetToTwoLabel(this.m_Level, this.m_Code, this.lbMainName, this.lbSubName); this.LoadGrid(this.m_Level, this.m_Code); }); this.xucOrganization1.Updated += new xucOrganization.UpdatedEventHander((object o) => this.xucOrganization1.LoadData()); this.dt_Timekeeper = (new HRM_TIMEKEEPER()).CreateNullDataTable(); (new HRM_TIMEKEEPER_TABLELIST()).AddRepositoryGridLookupEditByYear(this.repTimeKeeperList, this.m_Year); this.repTimeKeeperList.ButtonClick += new ButtonPressedEventHandler(this.repTimeKeeperList_ButtonClick); this.repPopup.PopupControl = this.ppContainerControl; this.ppContainerControl.Width = this.xucTimekeepingAdd.Width; this.ppContainerControl.Height = this.xucTimekeepingAdd.Height; this.ppContainerControl.Controls.Add(this.xucTimekeepingAdd); this.xucTimekeepingAdd.Status = Actions.Update; this.xucTimekeepingAdd.CancelClick += new ButtonClickEventHander((object s) => this.ppContainerControl.OwnerEdit.ClosePopup()); this.xucTimekeepingAdd.Success += new xucTimekeepingAdd.SuccessEventHander((object s, HRM_TIMEKEEPER i) => { this.m_IsEditValueChanged = false; this.gbList.SetFocusedValue(i.Hour); try { this.ppContainerControl.OwnerEdit.ClosePopup(); } catch { } }); }
private void ShowDisplay() { this.ppContainerEdit.Text = HRM_ORGANIZATION.GetOrganizationOnFull(this.m_Level, this.m_Code); if (this.m_SubsidiaryCode == null) { this.m_SubsidiaryCode = ""; } if (this.m_BranchCode == null) { this.m_BranchCode = ""; } if (this.m_DepartmentCode == null) { this.m_DepartmentCode = ""; } if (this.m_GroupCode == null) { this.m_GroupCode = ""; } this.Organization = new Organization(this.m_SubsidiaryCode, this.m_BranchCode, this.m_DepartmentCode, this.m_GroupCode, this.m_EmployeeCode, this.m_Level, this.m_Code); }
public xucSalaryBase() { InitializeComponent(); HRM_ORGANIZATION.SetToTwoLabel(0, "", this.lbMainName, this.lbSubName); }
protected override void LoadGrid() { base.LoadGrid(); HRM_ORGANIZATION.SetToTwoLabel(this.m_Level, this.m_Code, this.lbMainName, this.lbSubName); }