|
|
|
@ -4,22 +4,32 @@ using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using B3_DongFangWanQi.BO; |
|
|
|
using BWP.B3Frameworks; |
|
|
|
using BWP.B3Frameworks.BO; |
|
|
|
using BWP.B3Frameworks.BO.NamedValueTemplate; |
|
|
|
using BWP.B3Sale.BO; |
|
|
|
using BWP.Web.Layout; |
|
|
|
using BWP.Web.Utils; |
|
|
|
using Forks.EnterpriseServices.DataForm; |
|
|
|
using Forks.EnterpriseServices.DomainObjects2; |
|
|
|
using Forks.EnterpriseServices.DomainObjects2.DQuery; |
|
|
|
using Forks.EnterpriseServices.SqlDoms; |
|
|
|
using TSingSoft.WebControls2; |
|
|
|
|
|
|
|
namespace BWP.Web.Pages.B3_DongFangWanQi.Bills.ProductionNotification_ |
|
|
|
{ |
|
|
|
class SelectOrderDialog: DmoMultiSelectDialog<Order, ProductionNotification_Detail> |
|
|
|
{ |
|
|
|
private DFChoiceBox _liuchengfenlei; |
|
|
|
protected override void CreateQuery(VLayoutPanel vPanel) |
|
|
|
{ |
|
|
|
var layoutManager = new LayoutManager("", mDFInfo, mQueryContainer); |
|
|
|
|
|
|
|
|
|
|
|
_liuchengfenlei = QueryCreator.DFChoiceBox(mDFInfo.Fields["ID"], B3FrameworksConsts.DataSources.流程状态分类); |
|
|
|
layoutManager.Add("DepartmentWorkFlowStateCategory_ID", new SimpleLabel("流程状态分类"), _liuchengfenlei); |
|
|
|
layoutManager["DepartmentWorkFlowStateCategory_ID"].NotAutoAddToContainer = true; |
|
|
|
|
|
|
|
|
|
|
|
var config = new AutoLayoutConfig(); |
|
|
|
config.Add("ID"); |
|
|
|
config.Add("Customer_ID"); |
|
|
|
@ -31,6 +41,8 @@ namespace BWP.Web.Pages.B3_DongFangWanQi.Bills.ProductionNotification_ |
|
|
|
config.Add("SaleKind_ID"); |
|
|
|
config.Add("OrderDate"); |
|
|
|
config.Add("LoadTime"); |
|
|
|
config.Add("DepartmentWorkFlowStateCategory_ID"); |
|
|
|
|
|
|
|
layoutManager.Config = config; |
|
|
|
vPanel.Add(layoutManager.CreateLayout()); |
|
|
|
base.CreateQuery(vPanel); |
|
|
|
@ -52,9 +64,16 @@ namespace BWP.Web.Pages.B3_DongFangWanQi.Bills.ProductionNotification_ |
|
|
|
protected override DQueryDom GetQueryDom() |
|
|
|
{ |
|
|
|
var dom= base.GetQueryDom(); |
|
|
|
// var bill = dom.From.RootSource.Alias;
|
|
|
|
var bill = dom.From.RootSource.Alias; |
|
|
|
dom.Where.Conditions.Add(DQCondition.EQ("BillState",单据状态.未审核)); |
|
|
|
|
|
|
|
var flowdetail = new JoinAlias("flowdetail", typeof(DepartmentWorkFlow_Detail)); |
|
|
|
dom.From.AddJoin(JoinType.Left, new DQDmoSource(flowdetail), DQCondition.EQ(bill, "DepartmentWorkFlow_Detail_ID", flowdetail, "ID")); |
|
|
|
if (!_liuchengfenlei.IsEmpty) |
|
|
|
{ |
|
|
|
dom.Where.Conditions.Add(DQCondition.EQ(flowdetail, "DepartmentWorkFlowStateCategory_ID", long.Parse(_liuchengfenlei.Value))); |
|
|
|
} |
|
|
|
|
|
|
|
return dom; |
|
|
|
} |
|
|
|
} |
|
|
|
|