| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755 |
- /*******************************************************************************
- * Copyright(c) 2016 DongkeSoft All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:F_PC_1001.cs
- * 2.功能描述:模具档案
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 陈晓野 2017/12/07 1.00 新建
- *******************************************************************************/
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Reflection;
- using System.Windows.Forms;
- using Dongke.IBOSS.PRD.Basics.BaseResources;
- using Dongke.IBOSS.PRD.Client.CommonModule;
- using Dongke.IBOSS.PRD.Client.Controls;
- using Dongke.IBOSS.PRD.Client.DataModels;
- using Dongke.IBOSS.PRD.WCF.DataModels;
- using Dongke.IBOSS.PRD.WCF.Proxys;
- namespace Dongke.IBOSS.PRD.Client.PCModule
- {
- /// <summary>
- /// 模具档案
- /// </summary>
- public partial class F_PC_1001 : DKDockPanelBase
- {
- #region 成员变量
- private static F_PC_1001 _instance = null;
- #endregion
- #region 单例模式
- /// <summary>
- /// 单例模式,防止重复创建窗体
- /// </summary>
- public static F_PC_1001 Instance
- {
- get
- {
- if (_instance == null)
- {
- _instance = new F_PC_1001();
- }
- return _instance;
- }
- }
- #endregion
- #region 构造函数
- /// <summary>
- ///
- /// </summary>
- public F_PC_1001()
- {
- InitializeComponent();
- this.tsbtnAdd.Text = ButtonText.TSBTN_ADD;
- this.tsbtnEdit.Text = ButtonText.TSBTN_EDIT;
- this.tsbtnAdaptive.Text = ButtonText.TSBTN_ADAPTIVE;
- this.tsbtnClose.Text = ButtonText.TSBTN_CLOSE;
- this.dgvMould.AutoGenerateColumns = false;
- }
- #endregion
- #region 控件事件
- /// <summary>
- /// 关闭
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void F_PC_1001_FormClosed(object sender, FormClosedEventArgs e)
- {
- _instance = null;
- }
- /// <summary>
- /// 画面加载
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void F_PC_1001_Load(object sender, System.EventArgs e)
- {
- try
- {
- FormPermissionManager.FormPermissionControl(this.Name, this,
- LogInUserInfo.CurrentUser.CurrentUserEntity.UserRightData,
- LogInUserInfo.CurrentUser.CurrentUserEntity.FunctionData);
- this.dtpPDateBegin.Value = DateTime.Now;
- this.dtpPDateEnd.Value = DateTime.Now;
- this.dtpScrapDateBegin.Value = DateTime.Now;
- this.dtpScrapDateEnd.Value = DateTime.Now;
- ClientRequestEntity cre = new ClientRequestEntity();
- cre.NameSpace = "FPC1001";
- cre.Name = "GetFPC1001LoadData";
- ServiceResultEntity sre = PCModuleProxyNew.Service.HandleRequest(cre);
- this.ckcMouldType.DataSource = sre.Data.Tables["MouldType"];
- this.ckcSuppliers.DataSource = sre.Data.Tables["Suppliers"];
- this.calMouldStatus.DataSource = sre.Data.Tables["MouldStatus"];
- this.calMouldStatus.SetItemCheckedByValue(true, 1m, 2m, 3m);
- this.dgvMould.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 生产日期
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void chkPDate_CheckedChanged(object sender, EventArgs e)
- {
- this.dtpPDateBegin.Enabled = this.chkPDate.Checked;
- this.dtpPDateEnd.Enabled = this.chkPDate.Checked;
- }
- /// <summary>
- /// 报废日期
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void chkScrapDate_CheckedChanged(object sender, EventArgs e)
- {
- this.dtpScrapDateBegin.Enabled = this.chkScrapDate.Checked;
- this.dtpScrapDateEnd.Enabled = this.chkScrapDate.Checked;
- }
- /// <summary>
- /// 清除查询条件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnClearCondition_Click(object sender, EventArgs e)
- {
- this.txtModelBarcode.Clear();
- this.txtUserCode.Clear();
- this.txtGoodsCode.Clear();
- this.txtRemarks.Clear();
- this.ckcMouldType.ClearValue();
- this.ckcSuppliers.ClearValue();
- this.chkPDate.Checked = true;
- this.chkScrapDate.Checked = false;
- this.dtpPDateBegin.Value = DateTime.Now;
- this.dtpPDateEnd.Value = DateTime.Now;
- this.dtpScrapDateBegin.Value = DateTime.Now;
- this.dtpScrapDateEnd.Value = DateTime.Now;
- this.calMouldStatus.SetItemCheckedByValue(true, 1m, 2m, 3m);
- }
- /// <summary>
- /// 查询
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnSearch_Click(object sender, EventArgs e)
- {
- try
- {
- this.QueryDataFromOther();
- this.dgvMould.IsSetInputColumnsColor = true;
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 排序
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void dgvMould_Sorted(object sender, EventArgs e)
- {
- this.dgvMould.IsSetInputColumnsColor = true;
- }
- /// <summary>
- /// 自适应列宽
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnAdaptive_Click(object sender, EventArgs e)
- {
- this.dgvMould.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
- }
- /// <summary>
- /// 关闭画面
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnClose_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- /// <summary>
- /// 新建
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnAdd_Click(object sender, EventArgs e)
- {
- try
- {
- F_PC_1002 fpc1002 = new F_PC_1002(0);
- if (fpc1002.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 编辑
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnEdit_Click(object sender, EventArgs e)
- {
- if (this.dgvMould.CurrentRow == null || this.dgvMould.CurrentRow.Index < 0)
- {
- return;
- }
- try
- {
- int mouldID = Convert.ToInt32(this.dgvMould.CurrentRow.Cells["MouldID"].Value);
- F_PC_1002 fpc1002 = new F_PC_1002(mouldID);
- if (fpc1002.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 打印
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnPrint_Click(object sender, EventArgs e)
- {
- if (this.dgvMould.CurrentRow == null || this.dgvMould.CurrentRow.Index < 0)
- {
- return;
- }
- try
- {
- string barcode = this.dgvMould.CurrentRow.Cells["MouldBarcode"].Value.ToString();
- F_MST_013006.PrintBarcode(barcode, 1, this);
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 双击编辑
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void dgvMould_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
- {
- if (!this.tsbtnEdit.Visible || !this.tsbtnEdit.Enabled)
- {
- return;
- }
- if (e.ColumnIndex < 0 || e.RowIndex < 0 || "Sel" == dgvMould.Columns[e.ColumnIndex].Name)
- {
- return;
- }
- try
- {
- int mouldID = Convert.ToInt32(this.dgvMould.CurrentRow.Cells["MouldID"].Value);
- F_PC_1002 fpc1002 = new F_PC_1002(mouldID);
- if (fpc1002.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 报废
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnScrap_Click(object sender, EventArgs e)
- {
- try
- {
- DataTable dt = this.dgvMould.DataSource as DataTable;
- if (dt == null || dt.Rows.Count == 0)
- {
- return;
- }
- DataRow[] items = dt.Select("Sel = 1 and MouldStatus in (1,3)");
- if (items == null || items.Length == 0)
- {
- MessageBox.Show("没有选择任何模具,或所选模具不是【在库】、【待产】状态",
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
- MessageBoxDefaultButton.Button1);
- return;
- }
- List<string> ids = new List<string>();
- foreach (DataRow item in items)
- {
- ids.Add(item["MouldID"].ToString());
- }
- F_PC_1004 fpc1004 = new F_PC_1004(string.Join(",", ids), Constant.MouldOperationType.InvToScrap);
- if (fpc1004.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 撤销报废
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnUndoScrap_Click(object sender, EventArgs e)
- {
- try
- {
- DataTable dt = this.dgvMould.DataSource as DataTable;
- if (dt == null || dt.Rows.Count == 0)
- {
- return;
- }
- DataRow[] items = dt.Select("Sel = 1 and MouldStatus = 4");
- if (items == null || items.Length == 0)
- {
- MessageBox.Show("没有选择任何模具,或所选模具不是【报废】状态",
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
- MessageBoxDefaultButton.Button1);
- return;
- }
- List<string> ids = new List<string>();
- foreach (DataRow item in items)
- {
- ids.Add(item["MouldID"].ToString());
- }
- F_PC_1004 fpc1004 = new F_PC_1004(string.Join(",", ids), Constant.MouldOperationType.ScrapToInv);
- if (fpc1004.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 领用
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnOut_Click(object sender, EventArgs e)
- {
- try
- {
- DataTable dt = this.dgvMould.DataSource as DataTable;
- if (dt == null || dt.Rows.Count == 0)
- {
- return;
- }
- DataRow[] items = dt.Select("Sel = 1 and MouldStatus = 1");
- if (items == null || items.Length == 0)
- {
- MessageBox.Show("没有选择任何模具,或所选模具不是【在库】状态",
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
- MessageBoxDefaultButton.Button1);
- return;
- }
- List<string> ids = new List<string>();
- foreach (DataRow item in items)
- {
- ids.Add(item["MouldID"].ToString());
- }
- F_PC_1004 fpc1004 = new F_PC_1004(string.Join(",", ids), Constant.MouldOperationType.InvToOut);
- if (fpc1004.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 回收
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnIn_Click(object sender, EventArgs e)
- {
- try
- {
- DataTable dt = this.dgvMould.DataSource as DataTable;
- if (dt == null || dt.Rows.Count == 0)
- {
- return;
- }
- DataRow[] items = dt.Select("Sel = 1 and MouldStatus = 3");
- if (items == null || items.Length == 0)
- {
- MessageBox.Show("没有选择任何模具,或所选模具不是【待产】状态",
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
- MessageBoxDefaultButton.Button1);
- return;
- }
- List<string> ids = new List<string>();
- foreach (DataRow item in items)
- {
- ids.Add(item["MouldID"].ToString());
- }
- F_PC_1004 fpc1004 = new F_PC_1004(string.Join(",", ids), Constant.MouldOperationType.OutToInv);
- if (fpc1004.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 替换条码
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnChangeBarcode_Click(object sender, EventArgs e)
- {
- if (this.dgvMould.CurrentRow == null || this.dgvMould.CurrentRow.Index < 0)
- {
- return;
- }
- try
- {
- int mouldID = Convert.ToInt32(this.dgvMould.CurrentRow.Cells["MouldID"].Value);
- F_PC_1003 fpc1003 = new F_PC_1003(mouldID);
- if (fpc1003.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 变更型号
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnChangeGoodsCode_Click(object sender, EventArgs e)
- {
- try
- {
- DataTable dt = this.dgvMould.DataSource as DataTable;
- if(dt == null || dt.Rows.Count == 0)
- {
- return;
- }
- DataRow[] items = dt.Select("Sel = 1 and MouldStatus in (1,2,3)");
- if (items == null || items.Length == 0)
- {
- MessageBox.Show("没有选择任何模具,或所选模具不是【在库】、【在产】、【待产】状态",
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
- MessageBoxDefaultButton.Button1);
- return;
- }
- List<string> ids = new List<string>();
- foreach (DataRow item in items)
- {
- ids.Add(item["MouldID"].ToString());
- }
- F_PC_1004 fpc1004 = new F_PC_1004(string.Join(",", ids), Constant.MouldOperationType.ChangeGoodsCode);
- if (fpc1004.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- this.tsbtnSearch_Click(null, null);
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void dgvMould_SelectionChanged(object sender, EventArgs e)
- {
- try
- {
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void dgvMould_CurrentCellDirtyStateChanged(object sender, EventArgs e)
- {
- if (dgvMould.CurrentCell == null ||
- dgvMould.CurrentCell.RowIndex < 0 ||
- dgvMould.CurrentCell.ColumnIndex < 0)
- {
- return;
- }
- try
- {
- if (dgvMould.Columns[dgvMould.CurrentCell.ColumnIndex].Name == "Sel")
- {
- this.dgvMould.CommitEdit(DataGridViewDataErrorContexts.Commit);
- this.dgvMould.EndEdit();
- DataRowView drv = (this.dgvMould.CurrentRow.DataBoundItem as DataRowView);
- if (drv != null)
- {
- drv.EndEdit();
- }
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 全选
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnSelectAll_Click(object sender, EventArgs e)
- {
- try
- {
- DataTable dt = this.dgvMould.DataSource as DataTable;
- if (dt == null || dt.DefaultView.Count == 0)
- {
- return;
- }
- foreach (DataRowView item in dt.DefaultView)
- {
- item["Sel"] = 1;
- item.EndEdit();
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 不选
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnUnSelect_Click(object sender, EventArgs e)
- {
- try
- {
- DataTable dt = this.dgvMould.DataSource as DataTable;
- if (dt == null || dt.Rows.Count == 0)
- {
- return;
- }
- foreach (DataRow item in dt.Rows)
- {
- item["Sel"] = 0;
- item.EndEdit();
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- /// <summary>
- /// 反选
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void tsbtnReSelect_Click(object sender, EventArgs e)
- {
- try
- {
- DataTable dt = this.dgvMould.DataSource as DataTable;
- if (dt == null || dt.DefaultView.Count == 0)
- {
- return;
- }
- foreach (DataRowView item in dt.DefaultView)
- {
- if (Convert.ToInt32(item["Sel"]) == 0)
- {
- item["Sel"] = 1;
- }
- else
- {
- item["Sel"] = 0;
- }
- item.EndEdit();
- }
- }
- catch (Exception ex)
- {
- // 对异常进行共通处理
- ExceptionManager.HandleEventException(this.ToString(),
- MethodBase.GetCurrentMethod().Name, this.Text, ex);
- }
- }
- #endregion
- #region 私有方法
- /// <summary>
- /// 查询数据
- /// </summary>
- /// <returns>验证通过true,其他false</returns>
- private void QueryDataFromOther()
- {
- try
- {
- ClientRequestEntity cre = new ClientRequestEntity();
- cre.NameSpace = "FPC1001";
- cre.Name = "GetFPC1001QueryData";
- cre.Properties["MouldBarcode"] = this.txtModelBarcode.Text.Trim();
- cre.Properties["UserCode"] = this.txtUserCode.Text.Trim();
- cre.Properties["GoodsCode"] = this.txtGoodsCode.Text.Trim();
- cre.Properties["Remarks"] = this.txtRemarks.Text;
- cre.Properties["MouldTypes"] = this.ckcMouldType.CheckedValue;
- cre.Properties["Suppliers"] = this.ckcSuppliers.CheckedValue;
- if (this.chkPDate.Checked)
- {
- cre.Properties["PDateBegin"] = this.dtpPDateBegin.BeginTime;
- cre.Properties["PDateEnd"] = this.dtpPDateEnd.EndTime;
- }
- if (this.chkScrapDate.Checked)
- {
- cre.Properties["ScrapDateBegin"] = this.dtpScrapDateBegin.BeginTime;
- cre.Properties["ScrapDateEnd"] = this.dtpScrapDateEnd.EndTime;
- }
- cre.Properties["MouldStatus"] = this.calMouldStatus.CheckedValue;
- this.dgvMould.DataSource = null;
- ServiceResultEntity sre = DoAsync<ServiceResultEntity>(() =>
- {
- return PCModuleProxyNew.Service.HandleRequest(cre);
- }
- );
- if (sre.Status == Constant.ServiceResultStatus.Success)
- {
- // 查询成功
- this.dgvMould.DataSource = sre.Data.Tables[0];
- }
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
- #endregion
- }
- }
|