| | |
| | | using Kingdee.BOS.App.Data; |
| | | using Kingdee.BOS.Core.DynamicForm; |
| | | using Kingdee.BOS.Core.DynamicForm; |
| | | using Kingdee.BOS.Core.DynamicForm.PlugIn; |
| | | using Kingdee.BOS.Core.DynamicForm.PlugIn.Args; |
| | | using Kingdee.BOS.Core.Metadata.EntityElement; |
| | | using Kingdee.BOS.Orm.DataEntity; |
| | | using Kingdee.BOS.Util; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using Kingdee.BOS.ServiceHelper; |
| | | using System.Threading.Tasks; |
| | | using Kingdee.BOS.Core.DynamicForm.PlugIn.Args; |
| | | using Kingdee.BOS.Core.Metadata.EntityElement; |
| | | using Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel; |
| | | |
| | | namespace Demo.BillView |
| | | { |
| | |
| | | this.Model.SetValue("FLackCount", dt.Rows[i]["FLackCount"], i);//缺料数量 |
| | | this.Model.SetValue("FPassableCount", dt.Rows[i]["FHLeftQty"].ToString(), i);//可用数量 |
| | | this.Model.SetValue("FMateralCount", dt.Rows[i]["FHStockQty"].ToString(), i);//物料数量 |
| | | this.Model.SetValue("FOccupyCount", dt.Rows[i]["FOccupyCount"].ToString(), i);//占用数量 |
| | | this.Model.SetValue("FCompleteDetailStatus", dt.Rows[i]["FComPlete"].ToString(), i);//是否齐套 |
| | | this.Model.SetValue("FHMainICMOInterIDr", dt.Rows[i]["FHMainICMOInterIDr"].ToString(), i);//生产订单内码 |
| | | this.Model.SetValue("FPRDBillNo", dt.Rows[i]["FPRDBillNo"].ToString(), i);//生产订单内码 |
| | |
| | | did = true; |
| | | } |
| | | } |
| | | public override void AfterBindData(EventArgs e) |
| | | { |
| | | base.AfterBindData(e); |
| | | //获取单据体信息 |
| | | //Entity entity = this.View.BillBusinessInfo.GetEntity("FEntity"); |
| | | ////单据体信息转换为列表集合 |
| | | //DynamicObjectCollection entityDataObjoct = this.View.Model.GetEntityDataObject(entity); |
| | | //EntryGrid grid = this.View.GetControl<EntryGrid>("FEntity"); |
| | | //int i = 0; |
| | | //foreach (DynamicObject current in entityDataObjoct) |
| | | //{ |
| | | // if (Convert.ToString(current["FCompleteDetailStatus"]) == "未齐套") |
| | | // { |
| | | // grid.SetBackcolor("FEntity", "#FF0000", i); |
| | | // } |
| | | // i++; |
| | | //} |
| | | //this.View.UpdateView(); |
| | | } |
| | | |
| | | public override void BarItemClick(BarItemClickEventArgs e) |
| | | { |
| | | base.BarItemClick(e); |