private void LoadAsase()
        {
            foreach (DockPanel pnl in dockManagerMain.Panels)
                pnl.Enabled = false;

            repositoryItemLookUpEditasase_code.DataSource = FXFW.SqlDB.LoadDataTable(@"SELECT asase_code, asase_year, SPOS,
            (Select SCHOOL From TBLSCHOOL Where SPOS = CD_AsaseEmp.SPOS) AS SCHOOL, school_allcode FROM CD_AsaseEmp ORDER BY asase_code DESC");
            DataTable dt = (DataTable)repositoryItemLookUpEditasase_code.DataSource;
            if (dt.Rows.Count == 0)
            {
                CodeFrm FrmCode = new CodeFrm(CodeFrm.TableNames.CD_AsaseEmp) { Icon = FXFW.SqlDB.MakeIcon(imageCollection32.Images["CD_AsaseEmp.png"], 32, false) };
                FrmCode.ShowDialog();
                Application.Restart();
            }
            else
            {
                barEditItemasase_code.EditValue = dt.Rows[0]["asase_code"];
                ButtonPredefines btn = new ButtonPredefines();
                btn = ButtonPredefines.OK;
                repositoryItemLookUpEditasase_code_ButtonClick(repositoryItemLookUpEditasase_code, new ButtonPressedEventArgs(new EditorButton(btn)));
            }

            DataTable SalaryTbl = SQLProvider.SelectCD_AsaseSalary();
            repositoryItemLookUpEditAsaseSalary.DataSource = SalaryTbl;
            if (SalaryTbl.Rows.Count != 0)
                barEditItemAsaseSalary.EditValue = SalaryTbl.Rows[0]["AsaseSalaryId"];
            ButtonPredefines btnSalary = new ButtonPredefines();
            btnSalary = ButtonPredefines.OK;
            repositoryItemLookUpEditAsaseSalary_ButtonClick(repositoryItemLookUpEditAsaseSalary, new ButtonPressedEventArgs(new EditorButton(btnSalary)));
        }
 private void repositoryItemGridLookUpEditEmpKashfId_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Kind != DevExpress.XtraEditors.Controls.ButtonPredefines.Plus)
         return;
     CodeFrm FrmCode = new CodeFrm(CodeFrm.TableNames.CDKashf);
     FrmCode.ShowDialog();
     LoadDefaultData(CodeFrm.TableNames.CDKashf);
 }
 private void LUEJOB_STATUS_ID_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Kind != DevExpress.XtraEditors.Controls.ButtonPredefines.Plus)
         return;
     CodeFrm FrmCode = new CodeFrm(CodeFrm.TableNames.CD_EmpState);
     FrmCode.ShowDialog();
     LoadDefaultData(TableName.CD_EmpState);
 }