Selaa lähdekoodia

修改已装栈板的箱取消采集可能存在不能类型的值比较

章政 7 vuotta sitten
vanhempi
commit
43e37c1e9a

+ 2 - 2
UAS-MES/FunctionCode/Make/Make_PackageCollection.cs

@@ -397,7 +397,7 @@ namespace UAS_MES.Make
                                                     dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherCode2 + "') where pa_outboxcode='" + MotherCode2 + "'", "update");
                                                 }
                                             }
-                                            if (dt.Rows[0]["pa_type"] == "3")
+                                            if (dt.Rows[0]["pa_type"].ToString() == "3")
                                             {
                                                 dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherBoxCode + "') where pa_outboxcode='" + MotherBoxCode + "'", "update");
                                             }
@@ -480,7 +480,7 @@ namespace UAS_MES.Make
                                                 dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherCode2 + "') where pa_outboxcode='" + MotherCode2 + "'", "update");
                                             }
                                         }
-                                        if (dt.Rows[0]["pa_type"] == "3")
+                                        if (dt.Rows[0]["pa_type"].ToString() == "3")
                                         {
                                             dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherBoxCode + "') where pa_outboxcode='" + MotherBoxCode + "'", "update");
                                         }

+ 2 - 2
UAS-MES/FunctionCode/Make/Make_PackageCollectionWeigh.cs

@@ -422,7 +422,7 @@ namespace UAS_MES.Make
                                                     dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherCode2 + "') where pa_outboxcode='" + MotherCode2 + "'", "update");
                                                 }
                                             }
-                                            if (dt.Rows[0]["pa_type"] == "3")
+                                            if (dt.Rows[0]["pa_type"].ToString() == "3")
                                             {
                                                 dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherBoxCode + "') where pa_outboxcode='" + MotherBoxCode + "'", "update");
                                             }
@@ -516,7 +516,7 @@ namespace UAS_MES.Make
                                                 dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherCode2 + "') where pa_outboxcode='" + MotherCode2 + "'", "update");
                                             }
                                         }
-                                        if (dt.Rows[0]["pa_type"] == "3")
+                                        if (dt.Rows[0]["pa_type"].ToString() == "3")
                                         {
                                             dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherBoxCode + "') where pa_outboxcode='" + MotherBoxCode + "'", "update");
                                         }