| | |
| | | txt_salesId.getSuppler("", ""); |
| | | this.txt_salesId.EditChanged += (s, e) => |
| | | { |
| | | //有没有发货组织 |
| | | string _fhOrg = txt_fStockOrgId.GetId();//目前过滤供应组织 |
| | | if (string.IsNullOrEmpty(_fhOrg)) |
| | | return; |
| | | //有没有销售订单 |
| | | string _sqGuid = txt_salesId.GetId(); |
| | | if (string.IsNullOrEmpty(_sqGuid)) |
| | | return; |
| | |
| | | txt_fCustomerID.Text = txt_salesId.GetSalesCusName(); |
| | | txt_fSaleOrgId.Text = txt_salesId.GetSalesOrgName(); |
| | | System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(); |
| | | var _obj = new PageQueryModel(1, 999999, "item_no", "asc", "", sbWhere.ToString(), _fhOrg); |
| | | var _obj = new PageQueryModel(1, 999999, "item_no", "asc", "", sbWhere.ToString(), _sqGuid); |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | | try |
| | | { |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | }; |
| | | |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | string djlx = txt_fBillTypeID.Text.ToString(); |
| | | string FNote = txt_fNote.Text.ToString(); |
| | | string _sqGuid = txt_salesId.GetId(); |
| | | string _fhOrg = txt_fStockOrgId.GetId(); |
| | | if (string.IsNullOrEmpty(_fhOrg)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择发货组织!"); |
| | | txt_fStockOrgId.Focus(); |
| | | return; |
| | | } |
| | | if (txt_fBillTypeID.SelectedIndex < 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择单据类型!"); |
| | |
| | | } |
| | | if (string.IsNullOrEmpty(_sqGuid)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择申请组织!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择销售单!"); |
| | | txt_salesId.Focus(); |
| | | return; |
| | | } |
| | |
| | | djlx = djlx,//单据类型 |
| | | salesId = _sqGuid,//销售单号 |
| | | inRemark = FNote.Trim(),//备注 |
| | | fhOrg = _fhOrg, |
| | | list = new List<dynamic>(), |
| | | }; |
| | | gvMx1.CloseEditor(); |
| | |
| | | SalesDetailId = (row["salesDetailId"].ToString()), |
| | | Sqsl = (row["fMustQty"].ToString()), |
| | | Bz = (row["fEntrynote"].ToString()), |
| | | Yjsj = (row["YjfhDate"].ToString()), |
| | | }); |
| | | } |
| | | } |