| | |
| | | public string HDeptNumber; |
| | | public Int64 HProcID; |
| | | public Int64 HBadTypeID; |
| | | public Int64 HMaterTypeID; |
| | | public string HBarCode; |
| | | } |
| | | } |
| | |
| | | D:\WorkBench\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.MESMain.resources |
| | | D:\WorkBench\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.GenerateResource.cache |
| | | D:\WorkBench\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.CoreCompileInputs.cache |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\grpc_csharp_ext.x86.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\grpc_csharp_ext.x64.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\libgrpc_csharp_ext.x64.so |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\libgrpc_csharp_ext.x64.dylib |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Models\ClsSc_MouldScrapOutBillMain.cs |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NETERPNoWin.exe.config |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NETERPNoWin.exe |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NETERPNoWin.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BaseSet.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BLL.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\DAL.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\DBUtility.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Kanban.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Model.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\OAM.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\PlanM.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Pub_Class.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Pub_Control.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\SQLHelper.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WarM.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WorkM.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AxInterop.gregn6Lib.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\M2Mqtt.Net.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OOXML.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WebAPI.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Newtonsoft.Json.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AxInterop.grdes6Lib.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Interop.gregn6Lib.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\ICSharpCode.SharpZipLib.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BouncyCastle.Crypto.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OpenXml4Net.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OpenXmlFormats.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WebActivatorEx.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Optimization.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Mvc.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Swashbuckle.Core.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Http.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Http.Cors.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\RestSharp.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Kingdee.BOS.WebApi.Client.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AlibabaCloud.SDK.Dingtalk.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AlibabaCloud.OpenApiClient.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Tea.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\TopSdk.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Http.WebHost.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Net.Http.Formatting.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Dapper.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AlibabaCloud.TeaUtil.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Microsoft.Web.Infrastructure.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Razor.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.WebPages.Razor.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.WebPages.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Cors.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AlibabaCloud.GatewayDingTalk.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AlibabaCloud.GatewaySpi.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AlibabaCloud.OpenApiUtil.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AlibabaCloud.TeaXML.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.WebPages.Deployment.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Aliyun.Credentials.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BaseSet.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BLL.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\DAL.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\DBUtility.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Kanban.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Model.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\OAM.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\PlanM.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Pub_Class.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Pub_Control.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\SQLHelper.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WarM.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WarM.dll.config |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WorkM.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\M2Mqtt.Net.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OOXML.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OOXML.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WebAPI.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WebAPI.dll.config |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\ICSharpCode.SharpZipLib.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\ICSharpCode.SharpZipLib.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BouncyCastle.Crypto.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OpenXml4Net.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OpenXmlFormats.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Optimization.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Mvc.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Http.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Http.Cors.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\RestSharp.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\TopSdk.pdb |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Net.Http.Formatting.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Dapper.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.Razor.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.WebPages.Razor.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.WebPages.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\System.Web.WebPages.Deployment.xml |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\zh-Hans\System.Web.Http.resources.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\zh-Hans\System.Net.Http.Formatting.resources.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WebAPI.XmlSerializers.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.AssemblyReference.cache |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\Interop.gregn6Lib.dll |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.ResolveComReference.cache |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Form1.resources |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Frm_MESSetIni.resources |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.OA_MessageBox.resources |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Frm_Show.resources |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.MDIMain.resources |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Properties.Resources.resources |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Xt_Wait.resources |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.MESMain.resources |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.GenerateResource.cache |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.CoreCompileInputs.cache |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.CopyComplete |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.exe |
| | | D:\GitHub\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.pdb |
| | | D:\WMES\MES-WEB-API\NETERPNoWin\bin\x86\Debug\grpc_csharp_ext.x86.dll |
| | | D:\WMES\MES-WEB-API\NETERPNoWin\bin\x86\Debug\grpc_csharp_ext.x64.dll |
| | | D:\WMES\MES-WEB-API\NETERPNoWin\bin\x86\Debug\libgrpc_csharp_ext.x64.so |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #region ä¸è¯åå åå¨è¿ç¨ |
| | | /// <summary> |
| | | /// è¿åä¸è¯åå å表 |
| | | /// </summary> |
| | | [Route("Gy_BadReason/list_1")] |
| | | [HttpGet] |
| | | public object list_1(string sWhere, string user,int HMaterID,string HBillType,string OrgID) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_BadReason_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | sWhere = "and 1=1"; |
| | | } |
| | | else |
| | | sWhere = sWhere.Replace("'","''"); |
| | | ds = oCN.RunProcReturn("exec h_p_IF_BadReasonList " + HMaterID +",'"+ HBillType + "'," + OrgID + ",'" + sWhere +"'"+ " ", "h_p_IF_BadReasonList"); |
| | | |
| | | |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | //if (ds.Tables[0].Rows.Count != 0 || ds != null) |
| | | //{ |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | //} |
| | | //else |
| | | //{ |
| | | //objJsonResult.code = "0"; |
| | | //objJsonResult.count = 0; |
| | | //objJsonResult.Message = "æ æ°æ®"; |
| | | //objJsonResult.data = null; |
| | | //return objJsonResult; |
| | | //} |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ä¸è¯åå å®¡æ ¸ãåå®¡æ ¸ |
| | | /// <summary> |
| | |
| | | { |
| | | // æå
¥ä¸»è¡¨ï¼æ¯ç»æå
¥ä¸æ¬¡ï¼ |
| | | insertSql.AppendLine($"INSERT INTO CB_ItemMoneyBillMain ([HInterID], [HBillNo], [HDate], [HYear], [HPeriod], [HBillType], [HBillSubType], [HBillStatus], [HCheckItemNowID], [HCheckItemNextID], [HCheckFlowID], [HRemark], [HBacker], [HBackDate], [HBackRemark], [HChecker], [HCheckDate], [HMaker], [HMakeDate], [HUpDater], [HUpDateDate], [HCloseMan], [HCloseDate], [HCloseType], [HDeleteMan], [HDeleteDate], [HMainSourceBillType], [HMainSourceInterID], [HMainSourceEntryID], [HMainSourceBillNo], [HPrintQty], [HEmpID], [HDeptID], [HICMOInterID], [HMaterID], [HICMOBillNo], [HExplanation], [HInnerBillNo], [HBeginDate], [HEndDate], [HOrgID]) VALUES ("); |
| | | insertSql.AppendLine($"'{HInterID}', '{HBillNo}', '{DateTime.Now}', {DateTime.Now.Year}, {DateTime.Now.Month}, {"1802"}, '{"1802"}', '{"1"}', '{"0"}', '{"0"}', '{"0"}', '{"excel导å
¥"}', '{""}', '{DateTime.Now}', '{""}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{"0"}', '{""}', '{DateTime.Now}', '{""}', '{"0"}', '{"0"}', '{""}', '{"0"}', '{EmpID}', '{HSupplierID}', '{ICMOInterID}','{0}','{ICMO}','{""}','{"0"}','{DateTime.Now}','{DateTime.Now}','{"100038"}');"); |
| | | insertSql.AppendLine($"'{HInterID}', '{HBillNo}', '{DateTime.Now}', {list[0]["年份"]}, {list[0]["æä»½"]}, {"1802"}, '{"1802"}', '{"1"}', '{"0"}', '{"0"}', '{"0"}', '{"excel导å
¥"}', '{""}', '{DateTime.Now}', '{""}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{"0"}', '{""}', '{DateTime.Now}', '{""}', '{"0"}', '{"0"}', '{""}', '{"0"}', '{EmpID}', '{HSupplierID}', '{ICMOInterID}','{0}','{ICMO}','{""}','{"0"}','{DateTime.Now}','{DateTime.Now}','{"100038"}');"); |
| | | |
| | | // æå
¥å表ï¼ç»å
æ¯ä¸ªç©ææå
¥ä¸æ¬¡ï¼ |
| | | int HEntryID = 1; |
| | |
| | | |
| | | |
| | | insertSql.AppendLine($"INSERT INTO CB_WipProcessTable ([HYear], [HPeriod], [HDay], [HProcName], [HCusName], [HPartNumber], [HWIPQty], [HInProcessWIPQty], [HPanelQty], [HLot], [HOrderTime], [HStartTime], [HOutputTime], [HProductionTime], [HStatus], [HStayTime], [HChecker], [HCheckDate], [HMaker], [HMakeDate], [HUpDater], [HUpDateDate], [HCloseMan], [HCloseDate], [HCloseType], [HDeleteMan], [HDeleteDate], [HReamrk]) VALUES ("); |
| | | insertSql.AppendLine($" {DateTime.Now.Year}, {DateTime.Now.Month}, {DateTime.Now.Day}, '{item["产åºå·¥åº"]}', '{item["客æ·"]}', '{item["æåæå·"]}', '{item["WIPæ°é"]}', '{item["å¨å¶WIPæ°é"]}', '{item["æ¼çæ°"]}', '{item["LOT"]}', '{item["ä¸åæ¶é´"]}', '{item["æäº§æ¶é´"]}', '{item["äº§åºæ¶é´"]}', '{item["ç产æ¶é´"]}', '{item["ç¶æ"]}', '{item["åçæ¶é´(åé)"]}', '{""}', '{""}', '{user}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{""}', '{"0"}', '{""}', '{""}', '{"excel导å
¥"}');"); |
| | | insertSql.AppendLine($" {item["年份"]}, {item["æä»½"]}, {DateTime.Now.Day}, '{item["产åºå·¥åº"]}', '{item["客æ·"]}', '{item["æåæå·"]}', '{item["WIPæ°é"]}', '{item["å¨å¶WIPæ°é"]}', '{item["æ¼çæ°"]}', '{item["LOT"]}', '{item["ä¸åæ¶é´"]}', '{item["æäº§æ¶é´"]}', '{item["äº§åºæ¶é´"]}', '{item["ç产æ¶é´"]}', '{item["ç¶æ"]}', '{item["åçæ¶é´(åé)"]}', '{""}', '{""}', '{user}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{""}', '{"0"}', '{""}', '{""}', '{"excel导å
¥"}');"); |
| | | } |
| | | |
| | | if (errorMessage.Length > 0) |
| | |
| | | oCn.RunProc("Insert into " + MvarItemKey + " " + |
| | | " (HNumber,HName,HHelpCode,HShortNumber,HParentID" + |
| | | ",HDeptID,HProcID,HUseFlag,HUSEORGID,HCREATEORGID,HMakeEmp,HMakeTime" + |
| | | ",HLevel,HEndFlag,HStopflag,HRemark,HBadTypeID) " + |
| | | ",HLevel,HEndFlag,HStopflag,HRemark,HBadTypeID,HMaterTypeID) " + |
| | | " Values('" + oModel.HNumber + "','" + oModel.HName + "','" + oModel.HHelpCode + "','" + oModel.HShortNumber + "'," + oModel.HParentID.ToString() + |
| | | "," + oModel.HDeptID.ToString() + "," + oModel.HProcID.ToString() + ",'" + oModel.HUseFlag.ToString() + "'," + oModel.HUSEORGID.ToString() + "," + oModel.HCREATEORGID.ToString() + ",'" + oModel.HMakeEmp.ToString() + "',getdate()" + |
| | | "," + oModel.HLevel.ToString() + "," + Convert.ToString(oModel.HEndFlag ? 1 : 0) + "," + Convert.ToString(oModel.HStopflag ? 1 : 0) + ",'" + oModel.HRemark + "',"+oModel.HBadTypeID + ")", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | "," + oModel.HLevel.ToString() + "," + Convert.ToString(oModel.HEndFlag ? 1 : 0) + "," + Convert.ToString(oModel.HStopflag ? 1 : 0) + ",'" + oModel.HRemark + "',"+oModel.HBadTypeID +","+oModel.HMaterTypeID + ")", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //ä¿®æ¹ä¸çº§ä¸ºéæ«çº§ä»£ç |
| | | oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | |
| | | ",HUSEORGID='" + oModel.HUSEORGID + "'" + |
| | | ",HCREATEORGID='" + oModel.HCREATEORGID + "'" + |
| | | ",HModifyEmp ='" + oModel.HMakeEmp + "'" + |
| | | ",HMaterTypeID ='" + oModel.HMaterTypeID + "'" + |
| | | ",HModifyTime=getdate()" + |
| | | ",HRemark= '" + oModel.HRemark + "' Where HItemID=" + sItemID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //ä¿®æ¹å项ç®ä»£ç |