|
|
@@ -835,7 +835,19 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
835
|
835
|
pageindex,
|
|
836
|
836
|
true,
|
|
837
|
837
|
out recordCount);
|
|
838
|
|
-
|
|
|
838
|
+ #region 判断是否已存在工单
|
|
|
839
|
+ foreach (DataRow item in dt.Rows)
|
|
|
840
|
+ {
|
|
|
841
|
+ string wjid = item["F_Id"].ToString();
|
|
|
842
|
+ int c=new BLL.T_Wo_WorkOrder().GetRecordCount(" isnull(WjID,'')='"+wjid+"'");
|
|
|
843
|
+ if (c > 0)
|
|
|
844
|
+ {
|
|
|
845
|
+ item["ExpandSintField1"] = 1;
|
|
|
846
|
+ }
|
|
|
847
|
+ else
|
|
|
848
|
+ item["ExpandSintField1"] = 0;
|
|
|
849
|
+ }
|
|
|
850
|
+ #endregion
|
|
839
|
851
|
var obj = new
|
|
840
|
852
|
{
|
|
841
|
853
|
rows = dt,
|
|
|
@@ -885,7 +897,19 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
885
|
897
|
pageindex,
|
|
886
|
898
|
true,
|
|
887
|
899
|
out recordCount);
|
|
888
|
|
-
|
|
|
900
|
+ #region 判断是否已存在工单
|
|
|
901
|
+ foreach (DataRow item in dt.Rows)
|
|
|
902
|
+ {
|
|
|
903
|
+ string wjid = item["F_Id"].ToString();
|
|
|
904
|
+ int c = new BLL.T_Wo_WorkOrder().GetRecordCount(" isnull(WjID,'')='" + wjid + "'");
|
|
|
905
|
+ if (c > 0)
|
|
|
906
|
+ {
|
|
|
907
|
+ item["ExpandSintField1"] = 1;
|
|
|
908
|
+ }
|
|
|
909
|
+ else
|
|
|
910
|
+ item["ExpandSintField1"] = 0;
|
|
|
911
|
+ }
|
|
|
912
|
+ #endregion
|
|
889
|
913
|
var obj = new
|
|
890
|
914
|
{
|
|
891
|
915
|
rows = dt,
|