| | |
| | | this.Model.SetValue("FStockId", dt.Rows[i]["FSTOCKID"], i);//仓库 |
| | | this.Model.SetValue("FWorkShopId", dt.Rows[i]["FWORKSHOPID"], i);//车间 |
| | | this.Model.SetValue("FLot", dt.Rows[i]["FLot"], i);//批号 |
| | | this.Model.SetValue("FReceiveQty", dt.Rows[i]["FReceiveQty"], i);//未入库数量 |
| | | this.Model.SetValue("F_bsv_Decimal1", Convert.ToDecimal(dt.Rows[i]["FRemainReceiveQty"])+ Convert.ToDecimal(dt.Rows[i]["FNoStockInQty"]), i);//未交订单数量 |
| | | this.Model.SetValue("FRECIEVEBILLNO", dt.Rows[i]["FRECIEVEBILLNO"], i);//收料单号 |
| | | |
| | | } |
| | | } |
| | | ChangeColor(); |
| | |
| | | var entryRowIndex = this.Model.GetEntryCurrentRowIndex("FEntity"); |
| | | // 获取分录当前选中行中的物料数据包 |
| | | materialNumber = (this.Model.GetValue("FMateralDetailID", entryRowIndex) as DynamicObject)?["Number"].ToString(); |
| | | LogService.Write("FMateralDetailNumber:" + materialNumber); |
| | | // 打开单据联查列表:以联查销售订单为例 |
| | | IRegularFilterParameter filterParameter = new ListRegularFilterParameter(); |
| | | filterParameter.Filter = string.Format(" FMaterialId.FNumber = '{0}' and FStockOrgId = '{1}'", materialNumber, Context.CurrentOrganizationInfo.ID); |
| | |
| | | this.Model.SetValue("FStockId", dt.Rows[i]["FSTOCKID"], i);//仓库 |
| | | this.Model.SetValue("FWorkShopId", dt.Rows[i]["FWORKSHOPID"], i);//车间 |
| | | this.Model.SetValue("FLot", dt.Rows[i]["FLot"], i);//批号 |
| | | this.Model.SetValue("FReceiveQty", dt.Rows[i]["FReceiveQty"], i);//未入库数量 |
| | | this.Model.SetValue("F_bsv_Decimal1", Convert.ToDecimal(dt.Rows[i]["FRemainReceiveQty"]) + Convert.ToDecimal(dt.Rows[i]["FNoStockInQty"]), i);//未交订单数量 |
| | | this.Model.SetValue("FRECIEVEBILLNO", dt.Rows[i]["FRECIEVEBILLNO"], i);//收料单号 |
| | | |
| | | |
| | | } |
| | | } |
| | | //this.View.UpdateView(); |