Bläddra i källkod

新建半检功能文件架构

xuwei 6 år sedan
förälder
incheckning
eb0356955e

+ 1 - 0
DK.Service/PDAModuleLogic/PDAModuleLogic.csproj

@@ -80,6 +80,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="PDAModuleLogic.cs" />
+    <Compile Include="PDAModuleLogicSemi.cs" />
     <Compile Include="PDAModuleLogicWorkShop3.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>

+ 101 - 0
DK.Service/PDAModuleLogic/PDAModuleLogicSemi.cs

@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * Copyright(c) 2019 DongkeSoft All rights reserved. / Confidential
+ * 类的信息:
+ *      1.程序名称:PDAModuleLogicSemi.cs
+ *      2.功能描述:PDA相关处理(半检专用)。
+ * 编辑履历:
+ *      作者            日期                版本            修改内容
+ *      徐伟          2019/12/02            1.00            新建
+ *******************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Imaging;
+using System.IO;
+using System.Text;
+
+using Dongke.IBOSS.PRD.Basics.BaseResources;
+using Dongke.IBOSS.PRD.Basics.DataAccess;
+using Dongke.IBOSS.PRD.Basics.Library;
+using Dongke.IBOSS.PRD.Service.DataModels;
+using Dongke.IBOSS.PRD.WCF.DataModels;
+using Dongke.IBOSS.PRD.WCF.DataModels.HRModule;
+using Dongke.IBOSS.PRD.WCF.DataModels.PCModule;
+using Dongke.IBOSS.PRD.WCF.DataModels.PMModule;
+using Oracle.ManagedDataAccess.Client;
+using Newtonsoft.Json.Linq;
+
+namespace Dongke.IBOSS.PRD.Service.PDAModuleLogic
+{
+    /// <summary>
+    /// 半检专用接口
+    /// </summary>
+    public partial class PDAModuleLogic
+    {
+        //public static ServiceResultEntity SemiGetGroutingLineInfo(string groutingLineCode, string groutingDay, SUserInfo sUser)
+        //{
+        //    ServiceResultEntity sre = new ServiceResultEntity();
+        //    sre.Data = new DataSet();
+        //    sre.Status = Constant.ServiceResultStatus.Success;
+        //    IDBTransaction conn = ClsDbFactory.CreateDBTransaction(DataBaseType.ORACLE, DataManager.ConnectionString);
+        //    string sqlStr = "";
+        //    try
+        //    {
+        //        conn.Connect();
+        //        //成型线注浆查询
+        //        if (sre.Status == Constant.ServiceResultStatus.Success)
+        //        {
+        //            sqlStr = $@"
+        //                SELECT
+	       //                 l.GROUTINGLINECODE ,-- AS 成型线号,
+	       //                 l.LASTGROUTINGDATE ,-- AS 已注浆日期,
+	       //                 l.LASTGROUTINGBATCHNO ,-- AS 已注浆批次,
+	       //                 u.USERCODE ,-- AS 成型工号,
+	       //                 m.USERCODE AS MONITORUSERCODE,-- AS 成型班长,
+	       //                 l.MOULDQUANTITY, -- AS 模具数量, 
+	       //                 t.CANMANYTIMES -- AS 允许多次注浆
+        //                FROM
+	       //                 TP_PC_GROUTINGLINE l
+	       //                 LEFT JOIN TP_MST_USER u ON l.USERID = u.USERID
+	       //                 LEFT JOIN TP_MST_USER m ON l.USERID = m.USERID
+	       //                 LEFT JOIN TP_MST_GMOULDTYPE t ON l.GMOULDTYPEID = t.GMOULDTYPEID 
+        //                WHERE
+	       //                 l.VALUEFLAG = '1' --有效标识
+        //                    AND l.ACCOUNTID = {sUser.AccountID}
+	       //                 AND l.GMOULDSTATUS = 1 --成型线正常状态
+	       //                 AND t.CANMANYTIMES = '1' --允许多次注浆
+	       //                 AND EXISTS ( SELECT 1 FROM TP_PC_GROUTINGLINEDETAIL d WHERE l.GROUTINGLINEID = d.GROUTINGLINEID AND d.VALUEFLAG = '1' AND d.GMOULDSTATUS = 1 ) --有正常状态的模具
+	       //                 --AND EXISTS ( SELECT p.PURVIEWID FROM TP_MST_USERPURVIEW p WHERE p.PURVIEWTYPE = '6' AND ( p.PURVIEWID = - 1 OR p.PURVIEWID = l.GROUTINGLINEID ) AND u.USERCODE = '{sUser.UserCode}' ) --有操作权限
+        //                    AND l.GROUTINGLINECODE = '{groutingLineCode}'
+        //                ";
+        //            DataTable groutingLine = conn.GetSqlResultToDt(sqlStr);
+        //            groutingLine.TableName = "GroutingLine";
+        //            sre.Data.Tables.Add(groutingLine);
+        //            if (groutingLine.Rows.Count == 0)
+        //            {
+        //                sre.Status = Constant.ServiceResultStatus.NoSearchResults;
+        //                sre.Message = "没有查询结果!";
+        //            }
+        //            else
+        //            {
+        //                sre.Status = Constant.ServiceResultStatus.Success;
+        //                sre.Message = "操作成功!";
+        //            }
+        //        }
+        //    }
+        //    catch (Exception ex)
+        //    {
+        //        throw ex;
+        //    }
+        //    finally
+        //    {
+        //        conn.Disconnect();
+        //    }
+        //    //返回数据
+        //    return sre;
+        //}
+
+    }
+}

+ 39 - 0
WCF.Service/WCF.Contracts/IPDAModuleSemi.cs

@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright(c) 2019 DongkeSoft All rights reserved. / Confidential
+ * 类的信息:
+ *      1.程序名称:IPDAModule.cs
+ *      2.功能描述:PDA模块服务契约(半检专用)
+ * 编辑履历:
+ *      作者            日期                版本            修改内容
+ *      徐伟            2019/12/02          1.00            新建
+ *******************************************************************************/
+
+using System.Collections.Generic;
+using System.IO;
+using System.ServiceModel;
+using System.ServiceModel.Web;
+using Dongke.IBOSS.PRD.WCF.DataModels;
+using Dongke.IBOSS.PRD.WCF.DataModels.ConfigModule;
+using Dongke.IBOSS.PRD.WCF.DataModels.HRModule;
+using Dongke.IBOSS.PRD.WCF.DataModels.PCModule;
+using Dongke.IBOSS.PRD.WCF.DataModels.PMModule;
+using System.Data;
+
+namespace Dongke.IBOSS.PRD.WCF.Contracts
+{
+    /// <summary>
+    /// PDA模块服务契约
+    /// </summary>
+    //[ServiceContract(ConfigurationName = "PDAModuleService.IPDAModule",
+    //Name = "IPDAModule",
+    //Namespace = "Dongke.IBOSS.PRD.WCF.Contracts")]
+    public partial interface IPDAModule
+    {
+        //[OperationContract]
+        //[WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest
+        //    , ResponseFormat = WebMessageFormat.Json
+        //    , RequestFormat = WebMessageFormat.Json)]
+        //ActionResult SemiGetGroutingLineUserCode(string accountCode, string userCode, string userPassword, string sessionKey, string groutingLineCode);
+
+    }
+}

+ 1 - 0
WCF.Service/WCF.Contracts/WCF.Contracts.csproj

@@ -87,6 +87,7 @@
     <Compile Include="IPCModule.cs" />
     <Compile Include="IHRModule.cs" />
     <Compile Include="IPCModuleNew.cs" />
+    <Compile Include="IPDAModuleSemi.cs" />
     <Compile Include="IPDAModuleWorkShop3.cs" />
     <Compile Include="IPDAModule.cs" />
     <Compile Include="IPMModule.cs" />

+ 56 - 0
WCF.Service/WCF.Services/PDAModuleServiceSemi.cs

@@ -0,0 +1,56 @@
+/*******************************************************************************
+ * Copyright(c) 2019 DongkeSoft All rights reserved. / Confidential
+ * 类的信息:
+ *      1.程序名称:PDAModuleService.cs
+ *      2.功能描述:PDA模块WCF服务
+ * 编辑履历:
+ *      作者            日期                版本            修改内容
+ *      徐伟            2019/12/02          1.00            新建
+ *******************************************************************************/
+
+using System;
+using System.Reflection;
+using System.Collections.Generic;
+using System.Data;
+using System.IO;
+using System.ServiceModel;
+using System.ServiceModel.Activation;
+using Dongke.IBOSS.PRD.Basics.BaseResources;
+using Dongke.IBOSS.PRD.Basics.DataAccess;
+using Dongke.IBOSS.PRD.Basics.Library;
+using Dongke.IBOSS.PRD.Service.BarcodePrintService;
+using Dongke.IBOSS.PRD.Service.CommonModuleLogic;
+using Dongke.IBOSS.PRD.Service.DataModels;
+using Dongke.IBOSS.PRD.Service.DKIBOSSPRDLogic;
+using Dongke.IBOSS.PRD.Service.HRModuleLogic;
+using Dongke.IBOSS.PRD.Service.PCModuleLogic;
+using Dongke.IBOSS.PRD.Service.PDAModuleLogic;
+using Dongke.IBOSS.PRD.Service.PMModuleLogic;
+using Dongke.IBOSS.PRD.Service.PublicModuleService;
+using Dongke.IBOSS.PRD.Service.ReportModuleLogic;
+using Dongke.IBOSS.PRD.Service.SmartDeviceService;
+using Dongke.IBOSS.PRD.Service.SystemModuleLogic;
+using Dongke.IBOSS.PRD.WCF.Contracts;
+using Dongke.IBOSS.PRD.WCF.DataModels;
+using Dongke.IBOSS.PRD.WCF.DataModels.ConfigModule;
+using Dongke.IBOSS.PRD.WCF.DataModels.HRModule;
+using Dongke.IBOSS.PRD.WCF.DataModels.PCModule;
+using Dongke.IBOSS.PRD.WCF.DataModels.PMModule;
+
+namespace Dongke.IBOSS.PRD.WCF.Services
+{
+	public partial class PDAModuleService : IPDAModule
+	{
+        //public ActionResult SemiGetGroutingLineUserCode(string accountCode, string userCode, string userPassword, string sessionKey, string groutingLineCode)
+        //{
+        //    return CallActionResult("PDAModuleLogic.PDAModuleLogic.GetGroutingLineUserCode",
+        //        accountCode,
+        //        userCode,
+        //        userPassword,
+        //        sessionKey,
+        //        groutingLineCode
+        //        );
+        //}
+
+    }
+}

+ 1 - 0
WCF.Service/WCF.Services/WCF.Services.csproj

@@ -83,6 +83,7 @@
     <Compile Include="ConfigSetting\BatchingHostingSettings.cs" />
     <Compile Include="HRModuleService.cs" />
     <Compile Include="PCModuleServiceNew.cs" />
+    <Compile Include="PDAModuleServiceSemi.cs" />
     <Compile Include="PDAModuleServiceWorkShop3.cs" />
     <Compile Include="PDAModuleService.cs" />
     <Compile Include="PMModuleService.cs" />