| | |
| | | string _strTag = "N:不合格"; |
| | | |
| | | List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | public string strType = "";//iqc type |
| | | public string strType = "";//生产退料 type |
| | | public RkDetect01(string _strType) |
| | | { |
| | | InitializeComponent(); |
| | | strType = _strType; |
| | | } |
| | | |
| | | protected override void OnCreateControl() { |
| | | protected override void OnCreateControl() |
| | | { |
| | | base.OnCreateControl(); |
| | | if (Parent == null) return; |
| | | |
| | | this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; |
| | | this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; |
| | | this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; |
| | |
| | | xtraTabControl2.SelectedPageChanged += XtraTabControl2_SelectedPageChanged; |
| | | gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged; |
| | | btnIpt.Click += BtnIpt_Click; |
| | | string rptName = ""; |
| | | if (strType == QcSeason.生产退料入库检.ToString()) |
| | | rptName = "rpt_SCTL"; |
| | | else |
| | | if (strType == QcSeason.其它入库检.ToString()) |
| | | rptName = "rpt_Qtrk"; |
| | | else |
| | | if (strType == QcSeason.销售退货入库检.ToString()) |
| | | rptName = "rpt_Xsth"; |
| | | |
| | | this.ucBtnPrint1.btnPrintClick += (s, e) => |
| | | { |
| | | ucBtnPrint1.guidKey = ""; |
| | |
| | | this.ucBtnPrint1.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | this.ucBtnPrint1.rptParameter = "rpt_SCTL{" + rowGuid.Trim() |
| | | |
| | | this.ucBtnPrint1.rptParameter = rptName + "{" + rowGuid.Trim() |
| | | + "," + "" |
| | | + "," + Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(txt_yuliang_1.Text.Trim()) |
| | | + "," + txt_iCount_1.Text.Trim() |
| | |
| | | this.ucBtnPrint1.btnAllClick += (s, e) => |
| | | { |
| | | string rowGuid = txt_aboutGuid.Text.Trim(); |
| | | SelectDeleteBar frm = new SelectDeleteBar(rowGuid, "采购入库"); |
| | | SelectDeleteBar frm = new SelectDeleteBar(rowGuid, strType); |
| | | string strCodeList = ""; |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | |
| | | return; |
| | | try |
| | | { |
| | | string rptParameter = "rpt_SCTL{" |
| | | string rptParameter = rptName + "{" |
| | | + "100" |
| | | + "," + "" |
| | | + "," + "" |
| | |
| | | txt_rkCkId.Focus(); |
| | | return; |
| | | } |
| | | |
| | | if (txt_fcheckResu.Text.Trim() == _strTag && string.IsNullOrEmpty(txt_fngDesc.TextTxt.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("当检验结果不合格时,请填写备注说明!"); |
| | |
| | | private void getPageList(int curPage) |
| | | { |
| | | gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "release_no", "asc", "", " and a.order_type='"+ strType + "' " + _sbSqlWhere.ToString()); |
| | | PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "release_no", "asc", "", " and a.order_type='" + strType + "' " + _sbSqlWhere.ToString()); |
| | | string json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | |
| | | gvList.Add(gvMx1); |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList); |
| | | string strCk = dy.rkCkId; |
| | | txt_rkCkId.getSuppler(txt_tlOrg.Text.Trim(), strCk); |
| | | txt_rkCkId.getSuppler(txt_receiveOrgId.Text.Trim(), strCk); |
| | | setEable(isEdit); |
| | | txtQuantity.Text = dy["fbatchQty"].ToString(); |
| | | txt_kQty.Text = dy["kdy"].ToString(); |
| | |
| | | } |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | ToolBox.MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | ToolBox.MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |