소스 검색

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

章政 7 년 전
부모
커밋
43e37c1e9a
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      UAS-MES/FunctionCode/Make/Make_PackageCollection.cs
  2. 2 2
      UAS-MES/FunctionCode/Make/Make_PackageCollectionWeigh.cs

+ 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");
                                         }