F_HR_1101.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_HR_1101.cs
  5. * 2.功能描述:行政奖惩
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 张国印 2014/09/24 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Data;
  12. using System.Windows.Forms;
  13. using Dongke.IBOSS.PRD.Basics.BaseResources;
  14. using Dongke.IBOSS.PRD.Basics.DockPanel;
  15. using Dongke.IBOSS.PRD.Client.CommonModule;
  16. using Dongke.IBOSS.PRD.Client.DataModels;
  17. using Dongke.IBOSS.PRD.WCF.DataModels;
  18. using Dongke.IBOSS.PRD.WCF.Proxys;
  19. using Dongke.IBOSS.PRD.WCF.Proxys.HRModuleService;
  20. namespace Dongke.IBOSS.PRD.Client.HRModule
  21. {
  22. /// <summary>
  23. /// 行政奖惩
  24. /// </summary>
  25. public partial class F_HR_1101 : DockPanelBase
  26. {
  27. #region 成员变量
  28. // 窗体的单例模式
  29. private static F_HR_1101 _instance;
  30. //Grid当前选中的行
  31. private int _selectedRowIndex;
  32. //用户编辑的ID集合
  33. int[] _staffIDList;
  34. #endregion
  35. #region 构造函数
  36. /// <summary>
  37. /// 构造函数
  38. /// </summary>
  39. public F_HR_1101()
  40. {
  41. InitializeComponent();
  42. this.SetFromTitleInfo();
  43. // 设置ToolStripButton状态
  44. this.SetToolStripButtonEnable();
  45. }
  46. #endregion
  47. #region 单例模式
  48. /// <summary>
  49. /// 单例模式,防止重复创建窗体
  50. /// </summary>
  51. public static F_HR_1101 Instance
  52. {
  53. get
  54. {
  55. if (_instance == null)
  56. {
  57. _instance = new F_HR_1101();
  58. }
  59. return _instance;
  60. }
  61. }
  62. #endregion
  63. #region 事件
  64. /// <summary>
  65. /// 窗体加载事件
  66. /// </summary>
  67. /// <param name="sender"></param>
  68. /// <param name="e"></param>
  69. private void F_HR_1101_Load(object sender, EventArgs e)
  70. {
  71. try
  72. {
  73. #region 绑定数据源
  74. this.dkStaffName.WhereCondition = "(StaffStatus = 1 Or StaffStatus = 2) AND ValueFlag = 1";
  75. this.comRAPType.DataSource = GetRAPTypeInfo();
  76. this.comRAPType.DisplayMember = "TypeName";
  77. this.comRAPType.ValueMember = "TypeID";
  78. this.comSettlementFlag.DataSource = GetSettlementFlagInfo();
  79. this.comSettlementFlag.DisplayMember = "SettlementFlagName";
  80. this.comSettlementFlag.ValueMember = "SettlementFlagID";
  81. this.comAuditStatus.DataSource = GetAuditStatusInfo();
  82. this.comAuditStatus.DisplayMember = "AuditstatusName";
  83. this.comAuditStatus.ValueMember = "AuditstatusID";
  84. this.comAdministrationType.DataSource = DataDictionaryInfo();
  85. this.comAdministrationType.DisplayMember = "DictionaryValue";
  86. this.comAdministrationType.ValueMember = "DictionaryID";
  87. #endregion
  88. FormPermissionManager.FormPermissionControl(this.Name, this,
  89. LogInUserInfo.CurrentUser.CurrentUserEntity.UserRightData, LogInUserInfo.CurrentUser.CurrentUserEntity.FunctionData);
  90. }
  91. catch (Exception ex)
  92. {
  93. // 对异常进行共通处理
  94. ExceptionManager.HandleEventException(this.ToString(),
  95. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  96. }
  97. }
  98. /// <summary>
  99. /// 窗体关闭事件
  100. /// </summary>
  101. /// <param name="sender"></param>
  102. /// <param name="e"></param>
  103. private void F_HR_1101_FormClosed(object sender, FormClosedEventArgs e)
  104. {
  105. _instance = null;
  106. }
  107. /// <summary>
  108. /// 行获取焦点事件
  109. /// </summary>
  110. /// <param name="sender"></param>
  111. /// <param name="e"></param>
  112. private void dgvStaff_CellEnter(object sender, DataGridViewCellEventArgs e)
  113. {
  114. try
  115. {
  116. if (this.dgvStaff.CurrentCell != null)
  117. {
  118. // 记录最后选择行
  119. this._selectedRowIndex = this.dgvStaff.CurrentCell.RowIndex;
  120. }
  121. }
  122. catch (Exception ex)
  123. {
  124. // 对异常进行共通处理
  125. ExceptionManager.HandleEventException(this.ToString(),
  126. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  127. }
  128. }
  129. /// <summary>
  130. /// 单元格鼠标双击事件
  131. /// </summary>
  132. /// <param name="sender"></param>
  133. /// <param name="e"></param>
  134. private void dgvStaff_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
  135. {
  136. if (Constant.INT_IS_NEGATIE_ONE < e.RowIndex && Constant.INT_IS_NEGATIE_ONE < e.ColumnIndex
  137. && this.tsbtnEdit.Enabled && this.tsbtnEdit.Visible)
  138. {
  139. this.tsbtnEdit_Click(sender, e);
  140. }
  141. }
  142. /// <summary>
  143. /// 添加按钮
  144. /// </summary>
  145. /// <param name="sender"></param>
  146. /// <param name="e"></param>
  147. private void tsbtnAdd_Click(object sender, EventArgs e)
  148. {
  149. try
  150. {
  151. F_HR_1102 frmHR1102 = new F_HR_1102(Constant.FormMode.Add, Constant.INT_IS_NEGATIE_ONE);
  152. if (frmHR1102.ShowDialog() == DialogResult.OK)
  153. {
  154. this._staffIDList = frmHR1102.StaffIDList.ToArray();
  155. SearchAdminRAPEntity searchAdminRAPEntity = new SearchAdminRAPEntity();
  156. searchAdminRAPEntity.IDList = this._staffIDList;
  157. searchAdminRAPEntity.ValueFlag = Constant.ValueFlag.Effective.GetHashCode().ToString();
  158. DataSet dsResultStaff = (DataSet)DoAsync(new AsyncMethod(() =>
  159. {
  160. return HRModuleProxy.Service.SearcStaffAdminRAPInfo(searchAdminRAPEntity);
  161. }));
  162. if (dsResultStaff != null && dsResultStaff.Tables.Count > Constant.INT_IS_ZERO
  163. && dsResultStaff.Tables[0].Rows.Count > Constant.INT_IS_ZERO)
  164. {
  165. this.dgvStaff.DataSource = null;
  166. this.dgvStaff.DataSource = dsResultStaff.Tables[0];
  167. // 设置ToolStripButton按钮状态
  168. this.SetToolStripButtonEnable();
  169. this.dgvStaff.ReadOnly = true;
  170. }
  171. }
  172. }
  173. catch (Exception ex)
  174. {
  175. // 对异常进行共通处理
  176. ExceptionManager.HandleEventException(this.ToString(),
  177. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  178. }
  179. }
  180. /// <summary>
  181. /// 编辑按钮
  182. /// </summary>
  183. /// <param name="sender"></param>
  184. /// <param name="e"></param>
  185. private void tsbtnEdit_Click(object sender, EventArgs e)
  186. {
  187. try
  188. {
  189. if (this.dgvStaff.CurrentRow != null)
  190. {
  191. if (this.dgvStaff.CurrentRow.Cells["AUDITSTATUS"].Value == null)
  192. {
  193. MessageBox.Show(string.Format(Messages.MSG_CMN_W007, " 审批状态错误"),
  194. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  195. return;
  196. }
  197. string strAUDITSTATUS = this.dgvStaff.CurrentRow.Cells["AUDITSTATUS"].Value.ToString();
  198. if (Constant.ApprovalStatus.Pending.GetHashCode().ToString().Equals(strAUDITSTATUS))
  199. {
  200. int intRAPID = Convert.ToInt32(this.dgvStaff.CurrentRow.Cells["RAPID"].Value);
  201. F_HR_1102 frmHR1102 = new F_HR_1102(Constant.FormMode.Edit, intRAPID);
  202. if (frmHR1102.ShowDialog() == DialogResult.OK)
  203. {
  204. this._staffIDList = frmHR1102.StaffIDList.ToArray();
  205. SearchAdminRAPEntity searchAdminRAPEntity = new SearchAdminRAPEntity();
  206. searchAdminRAPEntity.IDList = this._staffIDList;
  207. searchAdminRAPEntity.ValueFlag = Constant.ValueFlag.Effective.GetHashCode().ToString();
  208. DataSet dsResultStaff = (DataSet)DoAsync(new AsyncMethod(() =>
  209. {
  210. return HRModuleProxy.Service.SearcStaffAdminRAPInfo(searchAdminRAPEntity);
  211. }));
  212. if (dsResultStaff != null && dsResultStaff.Tables.Count > Constant.INT_IS_ZERO
  213. && dsResultStaff.Tables[0].Rows.Count > Constant.INT_IS_ZERO)
  214. {
  215. this.dgvStaff.DataSource = null;
  216. this.dgvStaff.DataSource = dsResultStaff.Tables[0];
  217. // 设置ToolStripButton按钮状态
  218. this.SetToolStripButtonEnable();
  219. this.dgvStaff.ReadOnly = true;
  220. }
  221. }
  222. }
  223. else
  224. {
  225. MessageBox.Show(string.Format(Messages.MSG_CMN_W007, " 审批状态错误"),
  226. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  227. return;
  228. }
  229. }
  230. }
  231. catch (Exception ex)
  232. {
  233. // 对异常进行共通处理
  234. ExceptionManager.HandleEventException(this.ToString(),
  235. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  236. }
  237. }
  238. /// <summary>
  239. /// 停用按钮事件
  240. /// </summary>
  241. /// <param name="sender"></param>
  242. /// <param name="e"></param>
  243. private void tsbtnDisable_Click(object sender, EventArgs e)
  244. {
  245. try
  246. {
  247. DialogResult msgBoxResult = MessageBox.Show(
  248. string.Format(Messages.MSG_CMN_Q002, "该信息", "停用"), this.Text,
  249. MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  250. if (msgBoxResult == DialogResult.Yes)
  251. {
  252. int intRAPID = Convert.ToInt32(this.dgvStaff.CurrentRow.Cells["RAPID"].Value);
  253. HRResultEntity resultStaff = (HRResultEntity)DoAsync(() =>
  254. {
  255. return HRModuleProxy.Service.SetStaffAdminRAPValueFlag(intRAPID);
  256. }
  257. );
  258. this.dgvStaff.ReadOnly = true;
  259. // 修改成功
  260. if (resultStaff.OperateStatus > Constant.INT_IS_ZERO)
  261. {
  262. MessageBox.Show(string.Format(Messages.MSG_CMN_I001, "行政奖惩", "停用"),
  263. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
  264. this.btnSearch_Click(sender, e);
  265. }
  266. else if (resultStaff.OperateStatus == Constant.INT_IS_NEGATIE_FIVE)
  267. {
  268. MessageBox.Show(string.Format(Messages.MSG_HR_W003, "行政奖惩"),
  269. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
  270. }
  271. else if (resultStaff.OperateStatus == Constant.INT_IS_NEGATIE_SIX)
  272. {
  273. MessageBox.Show(string.Format(Messages.MSG_HR_W004, "行政奖惩"),
  274. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
  275. }
  276. else
  277. {
  278. MessageBox.Show(string.Format(Messages.MSG_CMN_W001, "行政奖惩", "停用"),
  279. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  280. }
  281. }
  282. }
  283. catch (Exception ex)
  284. {
  285. // 对异常进行共通处理
  286. ExceptionManager.HandleEventException(this.ToString(),
  287. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  288. }
  289. }
  290. /// <summary>
  291. /// 自动适应列宽
  292. /// </summary>
  293. /// <param name="sender"></param>
  294. /// <param name="e"></param>
  295. private void tsbtnAdaptive_Click(object sender, EventArgs e)
  296. {
  297. this.dgvStaff.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
  298. }
  299. /// <summary>
  300. /// 关闭按钮事件
  301. /// </summary>
  302. /// <param name="sender"></param>
  303. /// <param name="e"></param>
  304. private void tsbtnClose_Click(object sender, EventArgs e)
  305. {
  306. this.Close();
  307. }
  308. /// <summary>
  309. /// 查询按钮事件
  310. /// </summary>
  311. /// <param name="sender"></param>
  312. /// <param name="e"></param>
  313. private void btnSearch_Click(object sender, EventArgs e)
  314. {
  315. try
  316. {
  317. this._staffIDList = null;
  318. // 记录当前选中行
  319. int selectRowIndex = this._selectedRowIndex;
  320. SearchAdminRAPEntity searchAdminRAPEntity = SetSearchAdminRAPEntity();
  321. DataSet dsResultStaff = (DataSet)DoAsync(new AsyncMethod(() =>
  322. {
  323. return HRModuleProxy.Service.SearcStaffAdminRAPInfo(searchAdminRAPEntity);
  324. }));
  325. if (dsResultStaff != null)
  326. {
  327. base.DataSource = dsResultStaff;
  328. if (this.DataSource != null && this.DataSource.Tables.Count > Constant.INT_IS_ZERO)
  329. {
  330. this.dgvStaff.DataSource = this.DataSource.Tables[0];
  331. if (this.DataSource.Tables[0].Rows.Count <= Constant.INT_IS_ZERO)
  332. {
  333. // 提示未查找到数据
  334. MessageBox.Show(Messages.MSG_CMN_I002, this.Text,
  335. MessageBoxButtons.OK, MessageBoxIcon.Information);
  336. }
  337. else
  338. {
  339. #region 选择原有行
  340. if (selectRowIndex >= Constant.INT_IS_ZERO)
  341. {
  342. if (selectRowIndex >= dsResultStaff.Tables[0].Rows.Count)
  343. {
  344. this.dgvStaff.Rows[this.dgvStaff.Rows.Count - 1].Selected = true;
  345. this.dgvStaff.CurrentCell = this.dgvStaff.Rows[this.dgvStaff.Rows.Count - 1].Cells["StaffName"];
  346. }
  347. else
  348. {
  349. this.dgvStaff.Rows[selectRowIndex].Selected = true;
  350. this.dgvStaff.CurrentCell = this.dgvStaff.Rows[selectRowIndex].Cells["StaffName"];
  351. }
  352. }
  353. #endregion
  354. }
  355. }
  356. }
  357. this.SetToolStripButtonEnable();
  358. }
  359. catch (Exception ex)
  360. {
  361. // 对异常进行共通处理
  362. ExceptionManager.HandleEventException(this.ToString(),
  363. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  364. }
  365. }
  366. /// <summary>
  367. /// 清空条件
  368. /// </summary>
  369. /// <param name="sender"></param>
  370. /// <param name="e"></param>
  371. private void btnClearCondition_Click(object sender, EventArgs e)
  372. {
  373. this.dkStaffName.UserID = null;
  374. this.dkStaffName.UserCode = string.Empty;
  375. this.dkStaffName.UserName = string.Empty;
  376. this.dkStaffName.StaffEntity = null;
  377. this.comRAPType.SelectedIndex = 0;
  378. this.comAuditStatus.SelectedIndex = 0;
  379. this.comAdministrationType.SelectedIndex = 0;
  380. this.comSettlementFlag.SelectedIndex = 0;
  381. }
  382. #endregion
  383. #region 私有方法
  384. /// <summary>
  385. /// 设置窗体按钮的文本信息
  386. /// </summary>
  387. private void SetFromTitleInfo()
  388. {
  389. this.Text = FormTitles.F_HR_1101;
  390. this.tsbtnAdd.Text = ButtonText.TSBTN_ADD;
  391. this.tsbtnEdit.Text = ButtonText.TSBTN_EDIT;
  392. this.tsbtnDisable.Text = ButtonText.TSBTN_DISABLE;
  393. this.tsbtnAdaptive.Text = ButtonText.TSBTN_ADAPTIVE;
  394. this.tsbtnClose.Text = ButtonText.TSBTN_CLOSE;
  395. this.btnSearch.Text = ButtonText.BTN_SEARCH;
  396. this.btnClearCondition.Text = ButtonText.BTN_CLEARCONDITION;
  397. this.gbxCondition.Text = Constant.LABEL_QUERY_CONDITIONS;
  398. }
  399. /// <summary>
  400. /// 设置工具按钮的可用状态
  401. /// </summary>
  402. /// <remarks>
  403. private void SetToolStripButtonEnable()
  404. {
  405. if (this.dgvStaff.CurrentCell != null)
  406. {
  407. this.tsbtnEdit.Enabled = true;
  408. }
  409. else
  410. {
  411. this.tsbtnEdit.Enabled = false;
  412. }
  413. }
  414. /// <summary>
  415. /// 获取奖惩类型数据源
  416. /// </summary>
  417. /// <returns></returns>
  418. private DataTable GetRAPTypeInfo()
  419. {
  420. //1:奖励;-1:惩罚
  421. DataTable dtRAPType = new DataTable();
  422. dtRAPType.Columns.Add("TypeID");
  423. dtRAPType.Columns.Add("TypeName");
  424. DataRow newRowType = dtRAPType.NewRow();
  425. newRowType["TypeID"] = Constant.CBO_SELECT_ALL_VALUE;
  426. newRowType["TypeName"] = Constant.CBO_SELECT_ALL_NAME;
  427. dtRAPType.Rows.Add(newRowType);
  428. newRowType = dtRAPType.NewRow();
  429. newRowType["TypeID"] = "1";
  430. newRowType["TypeName"] = "奖励";
  431. dtRAPType.Rows.Add(newRowType);
  432. newRowType = dtRAPType.NewRow();
  433. newRowType["TypeID"] = "-1";
  434. newRowType["TypeName"] = "惩罚";
  435. dtRAPType.Rows.Add(newRowType);
  436. return dtRAPType;
  437. }
  438. /// <summary>
  439. /// 获取审批状态信息
  440. /// </summary>
  441. /// <returns></returns>
  442. public DataTable GetAuditStatusInfo()
  443. {
  444. DataTable dtAudit = LogInUserInfo.CurrentUser.GetSystemParameterByName(Constant.SysCacheTable.TP_SYS_AuditStatus);
  445. DataRow newRowAudit = dtAudit.NewRow();
  446. newRowAudit["AuditstatusID"] = Constant.CBO_SELECT_ALL_VALUE;
  447. newRowAudit["AuditstatusName"] = Constant.CBO_SELECT_ALL_NAME;
  448. dtAudit.Rows.InsertAt(newRowAudit, 0);
  449. return dtAudit;
  450. }
  451. /// <summary>
  452. /// 工资结算标识数据源
  453. /// </summary>
  454. /// <returns></returns>
  455. private DataTable GetSettlementFlagInfo()
  456. {
  457. //1:已经结算 0:未结算
  458. DataTable dtRAPType = new DataTable();
  459. dtRAPType.Columns.Add("SettlementFlagID");
  460. dtRAPType.Columns.Add("SettlementFlagName");
  461. DataRow newRowType = dtRAPType.NewRow();
  462. newRowType["SettlementFlagID"] = Constant.CBO_SELECT_ALL_VALUE;
  463. newRowType["SettlementFlagName"] = Constant.CBO_SELECT_ALL_NAME;
  464. dtRAPType.Rows.Add(newRowType);
  465. newRowType = dtRAPType.NewRow();
  466. newRowType["SettlementFlagID"] = "0";
  467. newRowType["SettlementFlagName"] = "未结算";
  468. dtRAPType.Rows.Add(newRowType);
  469. newRowType = dtRAPType.NewRow();
  470. newRowType["SettlementFlagID"] = "1";
  471. newRowType["SettlementFlagName"] = "已经结算";
  472. dtRAPType.Rows.Add(newRowType);
  473. return dtRAPType;
  474. }
  475. /// <summary>
  476. /// 获取行政考核类别数据源
  477. /// </summary>
  478. /// <returns></returns>
  479. public DataTable DataDictionaryInfo()
  480. {
  481. DataTable dtDicInfo = (DataTable)DoAsync(new AsyncMethod(() =>
  482. {
  483. return CommonModuleProxy.Service.GetDataDictionaryByType(Constant.ASE_ASE001);
  484. }));
  485. DataRow newRowDic = dtDicInfo.NewRow();
  486. newRowDic["DictionaryID"] = Constant.CBO_SELECT_ALL_VALUE;
  487. newRowDic["DictionaryValue"] = Constant.CBO_SELECT_ALL_NAME;
  488. dtDicInfo.Rows.InsertAt(newRowDic, 0);
  489. return dtDicInfo;
  490. }
  491. /// <summary>
  492. /// 根据查询条件 形成查询实体
  493. /// </summary>
  494. /// <returns></returns>
  495. public SearchAdminRAPEntity SetSearchAdminRAPEntity()
  496. {
  497. SearchAdminRAPEntity searchAdminRAPEntity = new SearchAdminRAPEntity();
  498. searchAdminRAPEntity.ValueFlag = Constant.ValueFlag.Effective.GetHashCode().ToString();
  499. if (this.dkStaffName.UserID != null)
  500. {
  501. searchAdminRAPEntity.StaffID = this.dkStaffName.UserID;
  502. }
  503. if (this.comRAPType.SelectedValue != null
  504. && !Constant.CBO_SELECT_ALL_VALUE.Equals(this.comRAPType.SelectedValue.ToString()))
  505. {
  506. searchAdminRAPEntity.RAPType = Convert.ToDouble(this.comRAPType.SelectedValue);
  507. }
  508. if (this.comSettlementFlag.SelectedValue != null
  509. && !Constant.CBO_SELECT_ALL_VALUE.Equals(this.comSettlementFlag.SelectedValue.ToString()))
  510. {
  511. searchAdminRAPEntity.SettlementFlag = this.comSettlementFlag.SelectedValue.ToString();
  512. }
  513. if (this.comAuditStatus.SelectedValue != null
  514. && !Constant.CBO_SELECT_ALL_VALUE.Equals(this.comAuditStatus.SelectedValue.ToString()))
  515. {
  516. searchAdminRAPEntity.AuditStatus = Convert.ToInt32(this.comAuditStatus.SelectedValue);
  517. }
  518. if (this.comAdministrationType.SelectedValue != null
  519. && !Constant.CBO_SELECT_ALL_VALUE.Equals(this.comAdministrationType.SelectedValue.ToString()))
  520. {
  521. searchAdminRAPEntity.AdministrationType = Convert.ToInt32(this.comAdministrationType.SelectedValue);
  522. }
  523. if (this._staffIDList != null && this._staffIDList.Length > Constant.INT_IS_ZERO)
  524. {
  525. searchAdminRAPEntity.IDList = this._staffIDList;
  526. }
  527. return searchAdminRAPEntity;
  528. }
  529. #endregion
  530. }
  531. }