コード例 #1
0
ファイル: KadrPostFrame.cs プロジェクト: UGTU/UGTUKadrProject
        private void EditSalaryBtn_Click(object sender, EventArgs e)
        {
            PKCategory CurrentPKCategory = pKCategoryBindingSource.Current as Kadr.Data.PKCategory;
            if (CurrentPKCategory != null)
            {
                using (Kadr.UI.Forms.PlanStaffSalaryHistoryForm dlg =
                    new Kadr.UI.Forms.PlanStaffSalaryHistoryForm())
                {
                    dlg.SalaryObject = CurrentPKCategory;
                    dlg.ShowDialog();
                    RefreshFrame();
                }
            }
            /*if (CurrentCategory.HaveSalary)
            {
                LinqActionsController<PKCategorySalary>.Instance.EditObject(CurrentCategory.PKCategorySalary, false);
                RefreshFrame();
            }
            else
            {
                MessageBox.Show("Выбранной вами категории еще не назначен оклад.", "АИС Штатное расписание", MessageBoxButtons.OK);

            }*/
        }
コード例 #2
0
ファイル: KadrRootFrame.cs プロジェクト: UGTU/UGTUKadrProject
 private void btnEditSalary_Click(object sender, EventArgs e)
 {
     PlanStaff CurrentPlanStaff = planStaffBindingSource.Current as Kadr.Data.PlanStaff;
        if (CurrentPlanStaff != null)
        {
        using (Kadr.UI.Forms.PlanStaffSalaryHistoryForm dlg =
            new Kadr.UI.Forms.PlanStaffSalaryHistoryForm())
        {
            dlg.SalaryObject = CurrentPlanStaff;
            dlg.ShowDialog();
            RefreshFrame();
        }
        }
 }