F_SET_014001.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_SET_014001.cs
  5. * 2.功能描述:票据信息一览
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. *******************************************************************************/
  9. using System;
  10. using System.Data;
  11. using System.Reflection;
  12. using System.Windows.Forms;
  13. using Dongke.IBOSS.PRD.Basics.BaseResources;
  14. using Dongke.IBOSS.PRD.Client.CommonModule;
  15. using Dongke.IBOSS.PRD.WCF.DataModels;
  16. using Dongke.IBOSS.PRD.WCF.Proxys;
  17. using Dongke.WinForm.Controls;
  18. namespace Dongke.IBOSS.PRD.Client.Controls
  19. {
  20. public partial class F_SET_014001 : DKDockPanelBase
  21. {
  22. #region 静态变量
  23. /// <summary>
  24. /// 条码打印模板
  25. /// </summary>
  26. public static string TITLE_F_SET_014001 = "注浆条码打印模板";
  27. /// <summary>
  28. /// 新建条码打印模板
  29. /// </summary>
  30. public static string TITLE_F_SET_014001_ADD = "新建注浆条码打印模板";
  31. /// <summary>
  32. /// 编辑条码打印模板
  33. /// </summary>
  34. public static string TITLE_F_SET_014001_EDIT = "编辑注浆条码打印模板";
  35. #endregion
  36. #region 成员变量
  37. private ClientRequestEntity _clientRequestEntity = null; // 查询条件实体
  38. private int _invoiceLayoutID; // 票据格式ID
  39. //private int _selectedRowIndex; // 记录当前选择行的索引
  40. private static F_SET_014001 _instance = null; // 窗体单例模式
  41. #endregion
  42. #region 构造函数
  43. public F_SET_014001()
  44. {
  45. InitializeComponent();
  46. // 窗口标题
  47. this.Text = F_SET_014001.TITLE_F_SET_014001;
  48. // 工具栏按钮文本赋值
  49. this.tsbtnAddInvoice.Text = ButtonText.TSBTN_ADD;
  50. this.tsbtnEdit.Text = ButtonText.TSBTN_EDIT;
  51. this.tsbtnPreviewInvoice.Text = "预览(&P)";
  52. this.tsbtnDelete.Text = ButtonText.TSBTN_DELETE;
  53. this.tsbtnAdaptive.Text = ButtonText.TSBTN_ADAPTIVE;
  54. this.tsbtnClose.Text = ButtonText.TSBTN_CLOSE;
  55. //this.tsbtnExport.Text = ButtonText.TSBTN_EXPORT;
  56. //this.tsbtnImport.Text = ButtonText.TSBTN_IMPORT;
  57. // 查询、清空条件按钮文本赋值
  58. this.tsbtnSearch.Text = ButtonText.BTN_SEARCH;
  59. this.tsbtnClearCondition.Text = ButtonText.BTN_CLEARCONDITION;
  60. // 设置表格不自动创建列
  61. this.dgvInvoice.AutoGenerateColumns = false;
  62. this.chkValueFlag.FlagBoxChecked = FlagCheckBoxChecked.Yes;
  63. // 编辑、导出和预览按钮不可用
  64. this.tsbtnEdit.Enabled = false;
  65. this.tsbtnPreviewInvoice.Enabled = false;
  66. this.tsbtnExport.Enabled = false;
  67. this.tsbtnDelete.Enabled = false;
  68. }
  69. #endregion
  70. #region 单例模式
  71. /// <summary>
  72. /// 单例模式,防止重复创建窗体
  73. /// </summary>
  74. public static F_SET_014001 Instance
  75. {
  76. get
  77. {
  78. if (_instance == null)
  79. {
  80. _instance = new F_SET_014001();
  81. }
  82. return _instance;
  83. }
  84. }
  85. #endregion
  86. #region 控件事件
  87. /// <summary>
  88. /// 画面打开
  89. /// </summary>
  90. /// <param name="sender"></param>
  91. /// <param name="e"></param>
  92. private void F_SET_014001_Load(object sender, EventArgs e)
  93. {
  94. try
  95. {
  96. }
  97. catch (Exception ex)
  98. {
  99. // 对异常进行共通处理
  100. ExceptionManager.HandleEventException(this.ToString(),
  101. MethodBase.GetCurrentMethod().Name, this.Text, ex);
  102. }
  103. }
  104. /// <summary>
  105. /// 画面关闭
  106. /// </summary>
  107. /// <param name="sender"></param>
  108. /// <param name="e"></param>
  109. private void F_SET_014001_FormClosed(object sender, FormClosedEventArgs e)
  110. {
  111. _instance = null;
  112. }
  113. /// <summary>
  114. /// 查询
  115. /// </summary>
  116. /// <param name="sender"></param>
  117. /// <param name="e"></param>
  118. private void tsbtnSearch_Click(object sender, EventArgs e)
  119. {
  120. try
  121. {
  122. this.QueryDataFromOther();
  123. }
  124. catch (Exception ex)
  125. {
  126. // 对异常进行共通处理
  127. ExceptionManager.HandleEventException(this.ToString(),
  128. MethodBase.GetCurrentMethod().Name, this.Text, ex);
  129. }
  130. }
  131. /// <summary>
  132. /// 清空查询条件
  133. /// </summary>
  134. /// <param name="sender"></param>
  135. /// <param name="e"></param>
  136. private void tsbtnClearCondition_Click(object sender, EventArgs e)
  137. {
  138. this.ClearConditions();
  139. }
  140. /// <summary>
  141. /// 点击新建票据按钮,新建票据
  142. /// </summary>
  143. /// <param name="sender"></param>
  144. /// <param name="e"></param>
  145. private void tsbtnAddInvoice_Click(object sender, System.EventArgs e)
  146. {
  147. try
  148. {
  149. F_SET_014002 frm012002 = new F_SET_014002();
  150. frm012002.Text = TITLE_F_SET_014001_ADD;
  151. DialogResult dialogresult = frm012002.ShowDialog();
  152. if (DialogResult.OK == dialogresult)
  153. {
  154. QueryDataFromOther();
  155. }
  156. }
  157. catch (Exception ex)
  158. {
  159. // 对异常进行共通处理
  160. ExceptionManager.HandleEventException(this.ToString(),
  161. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  162. }
  163. }
  164. /// <summary>
  165. /// 点击编辑按钮,编辑现有票据基本信息
  166. /// </summary>
  167. /// <param name="sender"></param>
  168. /// <param name="e"></param>
  169. private void tsbtnEdit_Click(object sender, EventArgs e)
  170. {
  171. try
  172. {
  173. // 获取活动行
  174. DataGridViewRow currentRow = this.dgvInvoice.CurrentRow;
  175. if (currentRow != null)
  176. {
  177. this._invoiceLayoutID = Convert.ToInt32(currentRow.Cells["InvoiceLayoutID"].Value);
  178. // 弹出填写票据基本信息窗体
  179. F_SET_014002 frmI012004 = new F_SET_014002();
  180. frmI012004.LayoutID = this._invoiceLayoutID;
  181. frmI012004.Text = TITLE_F_SET_014001_EDIT + (currentRow.Cells["LayoutName"].Value + "");
  182. DialogResult dialogResult = frmI012004.ShowDialog();
  183. if (DialogResult.OK == dialogResult)
  184. {
  185. QueryDataFromOther();
  186. }
  187. }
  188. }
  189. catch (Exception ex)
  190. {
  191. // 对异常进行共通处理
  192. ExceptionManager.HandleEventException(this.ToString(),
  193. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  194. }
  195. }
  196. /// <summary>
  197. /// 预览票据按钮按下
  198. /// </summary>
  199. /// <param name="sender"></param>
  200. /// <param name="e"></param>
  201. private void tsbtnPreviewInvoice_Click(object sender, EventArgs e)
  202. {
  203. try
  204. {
  205. // 获取活动行
  206. //DataGridViewRow currentRow = this.dgvInvoice.CurrentRow;
  207. //if (currentRow != null)
  208. //{
  209. // // 给票据预览画面赋值,并打开
  210. // F_MST_012005 frm012005 = new F_MST_012005();
  211. // frm012005.LayoutID = Convert.ToInt32(currentRow.Cells["InvoiceLayoutID"].Value);
  212. // frm012005.ShowDialog();
  213. //}
  214. }
  215. catch (Exception ex)
  216. {
  217. // 对异常进行共通处理
  218. ExceptionManager.HandleEventException(this.ToString(),
  219. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  220. }
  221. }
  222. /// <summary>
  223. /// 点击删除按钮
  224. /// </summary>
  225. /// <param name="sender"></param>
  226. /// <param name="e"></param>
  227. private void tsbtnDelete_Click(object sender, EventArgs e)
  228. {
  229. try
  230. {
  231. // 获取活动行
  232. DataGridViewRow currentRow = this.dgvInvoice.CurrentRow;
  233. if (currentRow != null)
  234. {
  235. DialogResult dr = MessageBox.Show("是否删除当前选择条码打印模板。", this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  236. if (dr != System.Windows.Forms.DialogResult.Yes)
  237. {
  238. return;
  239. }
  240. int layoutID = Convert.ToInt32(currentRow.Cells["InvoiceLayoutID"].Value);
  241. ServiceResultEntity sre = DoAsync<ServiceResultEntity>(() =>
  242. {
  243. ClientRequestEntity cre = new ClientRequestEntity();
  244. cre.NameSpace = "F_SET_014001";
  245. cre.Name = "DeleteBarCodeBatchLayout";
  246. cre.Properties["LayoutID"] = layoutID;
  247. cre.Properties["VALUEFLAG"] = 0;
  248. return SystemModuleProxy.Service.DoBarCodePrint(cre);
  249. }
  250. );
  251. if (sre.Status == Dongke.IBOSS.PRD.Basics.BaseResources.Constant.ServiceResultStatus.Success)
  252. {
  253. MessageBox.Show(string.Format("{0}的{1}操作成功完成了。", TITLE_F_SET_014001, "删除"),
  254. this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
  255. QueryDataFromOther();
  256. }
  257. }
  258. else
  259. {
  260. MessageBox.Show("没有选择任何条码打印模板。", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  261. }
  262. }
  263. catch (Exception ex)
  264. {
  265. // 对异常进行共通处理
  266. ExceptionManager.HandleEventException(this.ToString(),
  267. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  268. }
  269. }
  270. /// <summary>
  271. /// 票据的导出
  272. /// </summary>
  273. /// <param name="sender"></param>
  274. /// <param name="e"></param>
  275. private void tsbtnExport_Click(object sender, EventArgs e)
  276. {
  277. try
  278. {
  279. // 获取活动行
  280. //DataGridViewRow currentRow = this.dgvInvoice.CurrentRow;
  281. //if (currentRow != null)
  282. //{
  283. // _invoiceLayoutID = Convert.ToInt32(currentRow.Cells["InvoiceLayoutID"].Value);
  284. // // 准备打开保存文件对话框
  285. // SaveFileDialog saveFileDialogExport = new SaveFileDialog();
  286. // saveFileDialogExport.Filter = "东科票据文件(*.DK)|*.DK";
  287. // saveFileDialogExport.Title = "导出票据格式";
  288. // saveFileDialogExport.FileName = currentRow.Cells["LayoutName"].Value.ToString();
  289. // saveFileDialogExport.RestoreDirectory = true;
  290. // if (DialogResult.OK == saveFileDialogExport.ShowDialog())
  291. // {
  292. // ServiceResultEntity resultEntity;
  293. // bool result = this.DoAsync<ServiceResultEntity>(() =>
  294. // {
  295. // return this.GetInvoiceData(this._invoiceLayoutID);
  296. // }, out resultEntity);
  297. // DataSet LayoutDataSet = resultEntity.Data;
  298. // SoapFormatter formatter = new SoapFormatter();
  299. // FileStream stream = new FileStream(saveFileDialogExport.FileName, FileMode.Create, FileAccess.Write);
  300. // formatter.Serialize(stream, LayoutDataSet);
  301. // stream.Close();
  302. // MessageBox.Show("票据格式导出成功",
  303. // this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
  304. // }
  305. //}
  306. }
  307. catch (Exception ex)
  308. {
  309. // 对异常进行共通处理
  310. ExceptionManager.HandleEventException(this.ToString(),
  311. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  312. }
  313. }
  314. /// <summary>
  315. /// 票据的导入
  316. /// </summary>
  317. /// <param name="sender"></param>
  318. /// <param name="e"></param>
  319. private void tsbtnImport_Click(object sender, EventArgs e)
  320. {
  321. try
  322. {
  323. //OpenFileDialog ofdOpenFile = new OpenFileDialog();
  324. //ofdOpenFile.InitialDirectory = Environment.SpecialFolder.MyComputer.ToString();
  325. //ofdOpenFile.Title = "选择导入文件";
  326. //ofdOpenFile.Filter = "东科票据文件(*.DK)|*.DK";
  327. //ofdOpenFile.CheckFileExists = true;
  328. //ofdOpenFile.CheckPathExists = true;
  329. //ofdOpenFile.ValidateNames = true;
  330. //if (DialogResult.OK == ofdOpenFile.ShowDialog())
  331. //{
  332. // if (!string.IsNullOrEmpty(ofdOpenFile.FileName))
  333. // {
  334. // SoapFormatter formatter = new SoapFormatter();
  335. // FileStream stream = new FileStream(ofdOpenFile.FileName, FileMode.Open, FileAccess.Read);
  336. // DataSet readData = (DataSet)formatter.Deserialize(stream);
  337. // stream.Close();
  338. // // 弹出填写票据基本信息窗体
  339. // F_MST_012004 frmI012004 = new F_MST_012004();
  340. // frmI012004.InvoiceName = readData.Tables[0].Rows[0]["LayoutName"].ToString();
  341. // frmI012004.InvoiceType = readData.Tables[0].Rows[0]["InvoiceCode"].ToString();
  342. // frmI012004.FromForm = 2;
  343. // DialogResult dialogResult = frmI012004.ShowDialog();
  344. // if (DialogResult.OK == dialogResult)
  345. // {
  346. // // 插入数据库数据
  347. // readData.Tables[0].Rows[0]["OrganizationID"] = frmI012004.OrganizationID;
  348. // readData.Tables[0].Rows[0]["OrganizationCode"] = frmI012004.OrganizationCode;
  349. // readData.Tables[0].Rows[0]["OrganizationName"] = frmI012004.OrganizationName;
  350. // readData.Tables[0].Rows[0]["OrganizationFullName"] = "";
  351. // readData.Tables[0].Rows[0]["Remarks"] = "导入票据格式";
  352. // readData.Tables[0].Rows[0]["LayoutName"] = frmI012004.InvoiceName;
  353. // ServiceResultEntity resultEntity2;
  354. // bool result = this.DoAsync<ServiceResultEntity>(() =>
  355. // {
  356. // return this.SaveAddLayoutData(readData);
  357. // }, out resultEntity2);
  358. // int invoiceLayoutID = Convert.ToInt32(resultEntity2.Result);// this.SaveAddLayoutData(readData);
  359. // if (invoiceLayoutID > 0)
  360. // {
  361. // MessageBox.Show(string.Format("{0}的{1}操作成功完成了。", "票据格式", "票据导入"),
  362. // this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
  363. // int[] IDList = new int[] { invoiceLayoutID };
  364. // // 查询时先清空数据源
  365. // this.dgvInvoice.DataSource = null;
  366. // this.tsbtnEditInvoice.Enabled = false;
  367. // this.tsbtnEdit.Enabled = false;
  368. // this.tsbtnPreviewInvoice.Enabled = false;
  369. // this.tsbtnExport.Enabled = false;
  370. // this.tsbtnDelete.Enabled = false;
  371. // SearchSelectEntity();
  372. // ServiceResultEntity resultEntity;
  373. // result = this.DoAsync<ServiceResultEntity>(() =>
  374. // {
  375. // return this.GetInvoiceLayout();
  376. // }, out resultEntity);
  377. // DataSet invoiceInfo = resultEntity.Data;
  378. // if (invoiceInfo != null && invoiceInfo.Tables.Count > 0
  379. // && invoiceInfo.Tables[0].Rows.Count > 0)
  380. // {
  381. // this.dgvInvoice.DataSource = invoiceInfo.Tables[0];
  382. // // 设置编辑按钮可用
  383. // this.tsbtnEditInvoice.Enabled = true;
  384. // this.tsbtnEdit.Enabled = true;
  385. // this.tsbtnPreviewInvoice.Enabled = true;
  386. // this.tsbtnExport.Enabled = true;
  387. // this.tsbtnDelete.Enabled = true;
  388. // }
  389. // }
  390. // else
  391. // {
  392. // MessageBox.Show(string.Format("{0}的{1}操作没有更新任何数据,请确认该数据是否存在。", "导入票据", "保存"),
  393. // this.Text,
  394. // MessageBoxButtons.OK,
  395. // MessageBoxIcon.Warning);
  396. // }
  397. // }
  398. // }
  399. //}
  400. }
  401. catch (Exception ex)
  402. {
  403. // 对异常进行共通处理
  404. ExceptionManager.HandleEventException(this.ToString(),
  405. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  406. }
  407. }
  408. /// <summary>
  409. /// 单击自适应列宽,将所有的列宽都自动去适应内容
  410. /// </summary>
  411. /// <param name="sender"></param>
  412. /// <param name="e"></param>
  413. private void tsbtnAdaptive_Click(object sender, System.EventArgs e)
  414. {
  415. this.dgvInvoice.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
  416. }
  417. /// <summary>
  418. /// KeyDown事件
  419. /// </summary>
  420. /// <param name="sender"></param>
  421. /// <param name="e"></param>
  422. private void dgvInvoice_KeyDown(object sender, KeyEventArgs e)
  423. {
  424. try
  425. {
  426. if (e.KeyData == (Keys.Control | Keys.C))
  427. {
  428. if (dgvInvoice.CurrentRow != null
  429. && !string.IsNullOrEmpty(dgvInvoice.CurrentRow.Cells
  430. [dgvInvoice.CurrentCell.ColumnIndex].EditedFormattedValue + ""))
  431. {
  432. try
  433. {
  434. Clipboard.SetText(dgvInvoice.CurrentRow.Cells
  435. [dgvInvoice.CurrentCell.ColumnIndex].EditedFormattedValue + "");
  436. }
  437. catch { }
  438. }
  439. }
  440. }
  441. catch (Exception ex)
  442. {
  443. // 对异常进行共通处理
  444. ExceptionManager.HandleEventException(this.ToString(),
  445. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  446. }
  447. }
  448. /// <summary>
  449. /// 关闭页面
  450. /// </summary>
  451. /// <param name="sender"></param>
  452. /// <param name="e"></param>
  453. private void tsbtnClose_Click(object sender, EventArgs e)
  454. {
  455. this.Close();
  456. }
  457. /// <summary>
  458. /// 所选数据发生改变时
  459. /// </summary>
  460. /// <param name="sender"></param>
  461. /// <param name="e"></param>
  462. private void dgvInvoice_SelectionChanged(object sender, EventArgs e)
  463. {
  464. try
  465. {
  466. if (this.dgvInvoice.CurrentCell == null
  467. || this.dgvInvoice.SelectedRows.Count == 0)
  468. {
  469. this.tsbtnEdit.Enabled = false;
  470. this.tsbtnExport.Enabled = false;
  471. this.tsbtnPreviewInvoice.Enabled = false;
  472. this.tsbtnDelete.Enabled = false;
  473. }
  474. else
  475. {
  476. if (!this.tsbtnEdit.Enabled)
  477. {
  478. this.tsbtnEdit.Enabled = true;
  479. }
  480. if (!this.tsbtnPreviewInvoice.Enabled)
  481. {
  482. this.tsbtnPreviewInvoice.Enabled = true;
  483. }
  484. if (!this.tsbtnExport.Enabled)
  485. {
  486. this.tsbtnExport.Enabled = true;
  487. }
  488. this.tsbtnDelete.Enabled = true;
  489. }
  490. }
  491. catch (Exception ex)
  492. {
  493. // 对异常进行共通处理
  494. ExceptionManager.HandleEventException(this.ToString(),
  495. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  496. }
  497. }
  498. /// <summary>
  499. /// 双击进入编辑页面
  500. /// </summary>
  501. /// <param name="sender"></param>
  502. /// <param name="e"></param>
  503. private void dgvInvoice_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
  504. {
  505. if (-1 < e.RowIndex && -1 < e.ColumnIndex)
  506. {
  507. this.tsbtnEdit_Click(sender, e);
  508. }
  509. }
  510. #endregion
  511. #region 重写方法
  512. /// <summary>
  513. /// 查询数据
  514. /// </summary>
  515. /// <returns>验证通过true,其他false</returns>
  516. private void QueryDataFromOther()
  517. {
  518. try
  519. {
  520. this.SearchSelectEntity();
  521. this.dgvInvoice.DataSource = null;
  522. ServiceResultEntity sre = DoAsync<ServiceResultEntity>(() =>
  523. {
  524. return SystemModuleProxy.Service.DoBarCodePrint(this._clientRequestEntity);
  525. }
  526. );
  527. if (sre.Status == Constant.ServiceResultStatus.Success)
  528. {
  529. // 查询成功
  530. this.dgvInvoice.DataSource = sre.Data.Tables[0];
  531. if (sre.Data.Tables[0].Rows.Count > 0)
  532. {
  533. this.dgvInvoice.Rows[0].Selected = true;
  534. }
  535. }
  536. }
  537. catch (Exception ex)
  538. {
  539. throw ex;
  540. }
  541. }
  542. /// <summary>
  543. /// 清除查询条件
  544. /// </summary>
  545. public void ClearConditions()
  546. {
  547. this.txtInvoiceName.Text = string.Empty;
  548. this.txtRemarks.Text = string.Empty;
  549. this.chkValueFlag.FlagBoxChecked = FlagCheckBoxChecked.Yes;
  550. }
  551. #endregion
  552. #region 私有方法
  553. /// <summary>
  554. /// 获取查询实体
  555. /// </summary>
  556. private void SearchSelectEntity()
  557. {
  558. this._clientRequestEntity = new ClientRequestEntity();
  559. this._clientRequestEntity.NameSpace = "F_SET_014001";
  560. this._clientRequestEntity.Name = "GetBarCodeBatchLayoutList";
  561. // 模板名称
  562. this._clientRequestEntity.Properties["layoutname"] = this.txtInvoiceName.Text.Trim();
  563. this._clientRequestEntity.Properties["remarks"] = this.txtRemarks.Text.Trim();
  564. // 正常标识
  565. if (this.chkValueFlag.FlagBoxChecked == FlagCheckBoxChecked.Yes)
  566. {
  567. this._clientRequestEntity.Properties["valueflag"] = "1";
  568. }
  569. else if (this.chkValueFlag.FlagBoxChecked == FlagCheckBoxChecked.No)
  570. {
  571. this._clientRequestEntity.Properties["valueflag"] = "0";
  572. }
  573. }
  574. #endregion
  575. }
  576. }