|
|
@@ -37,11 +37,11 @@ namespace UAS_MES.Make
|
|
|
//箱内总数
|
|
|
int pa_totalqty;
|
|
|
//称量的标准重量
|
|
|
- int Weight;
|
|
|
+ Double Weight;
|
|
|
//最大重量
|
|
|
- int MaxWeight;
|
|
|
+ Double MaxWeight;
|
|
|
//最小重量
|
|
|
- int MinWeight;
|
|
|
+ Double MinWeight;
|
|
|
DataTable ListC = new DataTable();
|
|
|
|
|
|
Thread InitPrint;
|
|
|
@@ -116,9 +116,9 @@ namespace UAS_MES.Make
|
|
|
string _maxweight = dt.Rows[0]["pr_cartonmaxw"].ToString();
|
|
|
string _minweight = dt.Rows[0]["pr_cartonminw"].ToString();
|
|
|
string pa_pr_cartonunit = dt.Rows[0]["pr_cartonunit"].ToString();
|
|
|
- Weight = int.Parse(_weight == "" ? "0" : _weight);
|
|
|
- MaxWeight = int.Parse(_maxweight == "" ? "0" : _maxweight);
|
|
|
- MinWeight = int.Parse(_minweight == "" ? "0" : _minweight);
|
|
|
+ Weight = double.Parse(_weight == "" ? "0" : _weight);
|
|
|
+ MaxWeight = double.Parse(_maxweight == "" ? "0" : _maxweight);
|
|
|
+ MinWeight = double.Parse(_minweight == "" ? "0" : _minweight);
|
|
|
pa_totalqty = int.Parse(dt.Rows[0]["pa_totalqty"].ToString());
|
|
|
if (Weight - MinWeight == MaxWeight - Weight)
|
|
|
pr_cartongw.Text = Weight + "±" + (MaxWeight - Weight);
|