|
|
@ -49,7 +49,7 @@ namespace BWP.Web.Pages.B3ClientService.Reports.CarcassStateAnalyse_ |
|
|
mZone.Add(CreateResultTab()); |
|
|
mZone.Add(CreateResultTab()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ChoiceBox batchSelect; |
|
|
|
|
|
|
|
|
ChoiceBox batchSelect, goodsSelect; |
|
|
DFCheckBox noCodeBox; |
|
|
DFCheckBox noCodeBox; |
|
|
DateInput butcherDate; |
|
|
DateInput butcherDate; |
|
|
DFTextBox minInput, maxInput; |
|
|
DFTextBox minInput, maxInput; |
|
|
@ -60,10 +60,12 @@ namespace BWP.Web.Pages.B3ClientService.Reports.CarcassStateAnalyse_ |
|
|
hp.EAdd(new SimpleLabel("屠宰日期")); |
|
|
hp.EAdd(new SimpleLabel("屠宰日期")); |
|
|
butcherDate = hp.EAdd(new DateInput()); |
|
|
butcherDate = hp.EAdd(new DateInput()); |
|
|
hp.EAdd(new SimpleLabel("生产批次")); |
|
|
hp.EAdd(new SimpleLabel("生产批次")); |
|
|
batchSelect = hp.EAdd(new ChoiceBox(B3ClientServiceConsts.DataSources.生产批次) { EnableInputArgument = true, EnableTopItem = true, Width = Unit.Pixel(160) }); |
|
|
|
|
|
|
|
|
batchSelect = hp.EAdd(new ChoiceBox(B3ClientServiceConsts.DataSources.生产批次) { EnableInputArgument = true, EnableTopItem = true, Width = Unit.Pixel(160) }); |
|
|
var batch = GetYesterdayBatch(); |
|
|
var batch = GetYesterdayBatch(); |
|
|
if (batch != null) |
|
|
if (batch != null) |
|
|
batchSelect.Fill(batch.Item1.ToString(), batch.Item2); |
|
|
batchSelect.Fill(batch.Item1.ToString(), batch.Item2); |
|
|
|
|
|
hp.EAdd(new SimpleLabel("存货")); |
|
|
|
|
|
goodsSelect = hp.EAdd(new ChoiceBox(B3ClientServiceConsts.DataSources.存货) { EnableInputArgument = true, EnableTopItem = true, Width = Unit.Pixel(160) }); |
|
|
hp.EAdd(new SimpleLabel("入库重量")); |
|
|
hp.EAdd(new SimpleLabel("入库重量")); |
|
|
minInput = hp.EAdd(new DFTextBox() { Width = Unit.Pixel(50) }); |
|
|
minInput = hp.EAdd(new DFTextBox() { Width = Unit.Pixel(50) }); |
|
|
hp.EAdd(new LiteralControl("-")); |
|
|
hp.EAdd(new LiteralControl("-")); |
|
|
@ -144,6 +146,8 @@ namespace BWP.Web.Pages.B3ClientService.Reports.CarcassStateAnalyse_ |
|
|
{ |
|
|
{ |
|
|
query.Where.Conditions.Add(DQCondition.Or(DQCondition.EQ(batch, "Date", butcherDate.Value), DQCondition.EQ("ButcherDate", butcherDate.Value))); |
|
|
query.Where.Conditions.Add(DQCondition.Or(DQCondition.EQ(batch, "Date", butcherDate.Value), DQCondition.EQ("ButcherDate", butcherDate.Value))); |
|
|
} |
|
|
} |
|
|
|
|
|
if (!goodsSelect.IsEmpty) |
|
|
|
|
|
query.Where.Conditions.Add(DQCondition.EQ("InStoreGoods_ID", long.Parse(goodsSelect.Value))); |
|
|
if (noCodeBox.Checked) |
|
|
if (noCodeBox.Checked) |
|
|
query.Where.Conditions.Add(DQCondition.Or(DQCondition.IsNull(DQExpression.Field("BarCode")), DQCondition.EQ("BarCode", ""))); |
|
|
query.Where.Conditions.Add(DQCondition.Or(DQCondition.IsNull(DQExpression.Field("BarCode")), DQCondition.EQ("BarCode", ""))); |
|
|
if (!minInput.IsEmpty) |
|
|
if (!minInput.IsEmpty) |
|
|
|