|
|
@@ -310,7 +310,7 @@ namespace UAS_LabelMachine
|
|
|
//计算当前采集数量
|
|
|
string collectqty = (LabelInfDataTable.Compute("sum(pib_qty)", "pib_prodcode='" + CurrentPrCode + "' and pib_pdno='" + CurrentPDNO + "'").ToString());
|
|
|
double CollectQty = (collectqty == "" ? 0 : double.Parse(collectqty));
|
|
|
- if (Convert.ToDouble((CollectQty + CollectNum).ToString("0.00")) > double.Parse(CurrentPrCount))
|
|
|
+ if (Convert.ToDouble((CollectQty + CollectNum).ToString("0.000")) > double.Parse(CurrentPrCount))
|
|
|
{
|
|
|
MessageBox.Show("物料" + Data["PRCODE"] + "采集后数量为" + (CollectQty + CollectNum) + ",【超出】本行出货数量" + CurrentPrCount, "提示");
|
|
|
Input.SelectAll();
|
|
|
@@ -1100,7 +1100,7 @@ namespace UAS_LabelMachine
|
|
|
CollectNum += double.Parse(collectqty == "" ? "0" : collectqty);
|
|
|
OutNum += double.Parse(CurrentOutQTY);
|
|
|
GridPrcode.Rows[i].Cells["CollectedNum"].Value = collectqty;
|
|
|
- GridPrcode.Rows[i].Cells["UnCollectedNum"].Value = Convert.ToDouble(double.Parse(GridPrcode.Rows[i].Cells["pd_outqty"].Value.ToString()) - double.Parse(collectqty == "" ? "0" : collectqty)).ToString("0.00");
|
|
|
+ GridPrcode.Rows[i].Cells["UnCollectedNum"].Value = Convert.ToDouble(double.Parse(GridPrcode.Rows[i].Cells["pd_outqty"].Value.ToString()) - double.Parse(collectqty == "" ? "0" : collectqty)).ToString("0.000");
|
|
|
}
|
|
|
ProcessCount.Text = CollectNum + "/" + OutNum;
|
|
|
}
|
|
|
@@ -1345,7 +1345,7 @@ namespace UAS_LabelMachine
|
|
|
CollectNum += double.Parse(collectqty == "" ? "0" : collectqty);
|
|
|
OutNum += double.Parse(CurrentOutQTY);
|
|
|
GridPrcode.Rows[i].Cells["CollectedNum"].Value = collectqty;
|
|
|
- GridPrcode.Rows[i].Cells["UnCollectedNum"].Value = Convert.ToDouble(double.Parse(GridPrcode.Rows[i].Cells["pd_outqty"].Value.ToString()) - double.Parse(collectqty == "" ? "0" : collectqty)).ToString("0.00");
|
|
|
+ GridPrcode.Rows[i].Cells["UnCollectedNum"].Value = Convert.ToDouble(double.Parse(GridPrcode.Rows[i].Cells["pd_outqty"].Value.ToString()) - double.Parse(collectqty == "" ? "0" : collectqty)).ToString("0.000");
|
|
|
}
|
|
|
ProcessCount.Text = CollectNum + "/" + OutNum;
|
|
|
if (GridPrcode.Rows.Count > 0)
|
|
|
@@ -1591,7 +1591,7 @@ namespace UAS_LabelMachine
|
|
|
if (GridPrcode.Columns[e.ColumnIndex].Name == "UnCollectedNum")
|
|
|
{
|
|
|
SolidBrush solidBrush = new SolidBrush(Color.FromArgb(51, 153, 255));
|
|
|
- if (GridPrcode.Rows[e.RowIndex].Cells["UnCollectedNum"].Value.ToString() == "0.00")
|
|
|
+ if (GridPrcode.Rows[e.RowIndex].Cells["UnCollectedNum"].Value.ToString() == "0.000")
|
|
|
e.Graphics.FillRectangle(mouseOver ? solidBrush : Brushes.LightSeaGreen, e.CellBounds);
|
|
|
else
|
|
|
e.Graphics.FillRectangle(mouseOver ? solidBrush : Brushes.Red, e.CellBounds);
|