DAL/WMS/ClsKF_PonderationBillMain_Temp_View.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/MoveStockBillController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/ProductInController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/WebAPIController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/工资管理/Gy_ClassTimePrjSubController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Models/基础资料/Gy_ClassTimePrjSub.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/WebAPI.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/WebServer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WorkM/流转卡管理/MES_StationOutBill.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
DAL/WMS/ClsKF_PonderationBillMain_Temp_View.cs
@@ -75,6 +75,21 @@ #endregion //ç¼åå表çé¢ï¼è¿åç¼ååè¡¨ä¿¡æ¯ public DataSet GetKf_PonderationBillMain_TempList_New(string sHBillType, string sHMaker, Int64 sHOWNERID) { SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); DataSet Ds = oCn.RunProcReturn("exec h_p_KF_GetPonderationBillMain_TempList_New '" + sHBillType + "','" + sHMaker + "'," + sHOWNERID.ToString(), "h_p_KF_GetPonderationBillMain_TempList_New"); if (Ds == null || Ds.Tables[0].Rows.Count == 0) { return null; } else { return Ds; } } public DataSet GetKf_ICStockBillList(string sHBillType, string sHMaker, Int64 sHOWNERID) { SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); WebAPI/Controllers/MoveStockBillController.cs
@@ -440,7 +440,7 @@ websLsmain.HSupID = 0; //websLsmain.HGroupID = lsmain[0].HGroupID; if (webserver.set_SaveMoveStockBill(websLsmain, "-1", ref DBUtility.ClsPub.sErrInfo)) if (webserver.set_SaveMoveStockBill(websLsmain, sSourceBillType, ref DBUtility.ClsPub.sErrInfo)) { objJsonResult.code = "0"; objJsonResult.count = 1; WebAPI/Controllers/ProductInController.cs
@@ -59,6 +59,37 @@ return ""; } } /// <summary> /// 产åå ¥åºç¼åå表ç¼è¾å夿忮æ¯å¦å·²ä¸ä¼ ç´æ¥è°WebService /// </summary> /// <returns></returns> //[Route("ProductIn/ProductInTempList_Modify")] //[HttpGet] //public Object ProductInTempList_Modify(Int64 sInterID,string sBillNo, string sBillType) //{ // //oBar = webserver.get_CheckTypeByBarCode(sCode, sInterID, sBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, ref DBUtility.ClsPub.sErrInfo); // WebS.WebService1 oWebs = new WebS.WebService1(); // if (oWebs.TempList_Modify(sInterID, sBillNo, sBillType, ref sErrMsg)) // { // objJsonResult.code = "0"; // objJsonResult.count = 0; // objJsonResult.Message = DBUtility.ClsPub.sErrInfo; // objJsonResult.data = null; // return objJsonResult; // } // else // { // objJsonResult.code = "0"; // objJsonResult.count = 1; // objJsonResult.Message = DBUtility.ClsPub.sErrInfo; // objJsonResult.data = null; // return objJsonResult; // } //} /// <summary> /// 产åå ¥åº/æ«æ¡ç /ç´æ¥è°ç¨webservice /// </summary> @@ -165,6 +196,46 @@ } } ///// <summary> ///// 产åå ¥åºç¼ååè¡¨å·æ°ä¿¡æ¯ ///// </summary> ///// <returns></returns> //[Route("ProductIn/DisBillEntryList_Json1")] //[HttpGet] //public object DisBillEntryList_Json1(string HBillType,string sHMaker, Int64 HOrgID) //{ // try // { // ds = webserver.GetKf_PonderationBillMain_TempList_New(HBillType, sHMaker, HOrgID); // if (ds == null || ds.Tables[0].Rows.Count <= 0) // { // objJsonResult.code = "0"; // objJsonResult.count = 0; // objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼"; // objJsonResult.data = null; // return objJsonResult; // //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning); // } // else // { // objJsonResult.code = "0"; // objJsonResult.count = 1; // objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; // objJsonResult.data = ds.Tables[0]; // return objJsonResult; // } // } // catch (Exception e) // { // objJsonResult.code = "0"; // objJsonResult.count = 0; // objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); // objJsonResult.data = null; // return objJsonResult; // } //} /// <summary> WebAPI/Controllers/WebAPIController.cs
@@ -2497,6 +2497,48 @@ } #endregion /// <summary> /// 产åå ¥åºç¼ååè¡¨å·æ°ä¿¡æ¯ /// </summary> /// <returns></returns> [Route("Web/chanpinruk")] [HttpGet] public object chanpinruk(string HBillType, string sHMaker, Int64 HOrgID) { try { ds = webserver.GetKf_PonderationBillMain_TempList_New(HBillType, sHMaker, HOrgID); if (ds == null || ds.Tables[0].Rows.Count <= 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼"; objJsonResult.data = null; return objJsonResult; //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning); } else { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } } } WebAPI/Controllers/¹¤×ʹÜÀí/Gy_ClassTimePrjSubController.cs
@@ -77,7 +77,7 @@ try { ds = oCN.RunProcReturn("select * from h_v_Gy_ClassTimePrjSubList where HitemID=" + HInterID, "h_v_Gy_ClassTimePrjSubList"); ds = oCN.RunProcReturn("select * from h_v_Gy_ClassTimePrjSubList where HInterID=" + HInterID, "h_v_Gy_ClassTimePrjSubList"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; @@ -131,31 +131,31 @@ List<Gy_ClassTimePrjSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Gy_ClassTimePrjSub>>(msg2); long HInterID = list[0].HInterID; long HItemID = list[0].HItemID; long HEntryID = list[0].HEntryID; string HYear = list[0].HYear; decimal HPeriod = list[0].HPeriod; string HSumWorkTimes = list[0].HSumWorkTimes; decimal HSumMoney = list[0].HSumMoney; string HRate = list[0].HRate; decimal HOldRate = list[0].HOldRate; string HNumber = list[0].HNumber; string HName = list[0].HName; long hparentid = list[0].hparentid; string HMaker = list[0].HMaker; string HSumWorkTimes = list[0].HSumWorkTimes; string HRate = list[0].HRate; decimal HSumMoney = list[0].HSumMoney; string HYear = list[0].HYear; decimal HPeriod = list[0].HSumMoney; decimal HOldRate = list[0].HOldRate; //ä¿å //ä¿å宿¯åå¤ç if (HItemID == 0) if (HInterID == 0) { oCN.BeginTran(); oCN.RunProc("Insert into Gy_ClassTimePrjSub" + " (HInterID,HMaker,HMakeDate,HSumWorkTimes" + " (HEntryID,HMaker,HMakeDate,HSumWorkTimes" + ",HRate,HSumMoney,HYear,HPeriod" + ",HOldRate) " + " Values(" + HInterID + ",'" + HMaker + "','" + DBUtility.ClsPub.GetServerDate(-1) + "'," + HSumWorkTimes.ToString() + " Values(" + HEntryID + ",'" + HMaker + "','" + DBUtility.ClsPub.GetServerDate(-1) + "'," + HSumWorkTimes.ToString() + "," + HRate + "," + HSumMoney.ToString() + "," + HYear.ToString() + "," + HPeriod.ToString() + "," + HOldRate.ToString() + ")", ref DBUtility.ClsPub.sExeReturnInfo); //ä¿®æ¹ä¸çº§ä¸ºéæ«çº§ä»£ç oCN.RunProc("Update Gy_ClassTimePrjSub set HStopflag=0 where HInterID=" + hparentid, ref DBUtility.ClsPub.sExeReturnInfo); oCN.Commit(); } else { @@ -163,21 +163,17 @@ oCN.BeginTran(); //主表 oCN.RunProc("Update Gy_ClassTimePrjSub set " + " HNumber='" + HNumber + "'" + ",HName='" + HName + "'" + ",HMaker='" + HMaker + "'" + ",hparentid=" + hparentid.ToString() + "HMaker='" + HMaker + "'" + ",HSumWorkTimes=" + HSumWorkTimes.ToString() + ",HSumMoney=" + HSumMoney.ToString() + ",HYear=" + HYear.ToString() + ",HPeriod=" + HPeriod.ToString() + ",HOldRate=" + HOldRate.ToString() + ",HRate= '" + HRate + "' Where HItemID=" + HItemID, ref DBUtility.ClsPub.sExeReturnInfo); ",HEntryID=" + HEntryID.ToString() + ",HRate= '" + HRate + "' Where HInterID=" + HInterID, ref DBUtility.ClsPub.sExeReturnInfo); //ä¿®æ¹å项ç®ä»£ç //oCN.RunProc("exec h_p_Gy_UpdateNumber Gy_Warehouse,'" + HNumber + ".','" + this.HOldNumber + ".'", ref DBUtility.ClsPub.sExeReturnInfo); //å°ä¸çº§ ä¸ºéæ«çº§ oCN.RunProc("Update Gy_ClassTimePrjSub set HStopflag=0 where HInterID=" + hparentid, ref DBUtility.ClsPub.sExeReturnInfo); // oCN.Commit(); } objJsonResult.code = "0"; @@ -215,54 +211,16 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "HItemID为空ï¼"; objJsonResult.Message = "HInterID为空ï¼"; objJsonResult.data = null; return objJsonResult; } oCN.BeginTran();//å¼å§äºå¡ ds = oCN.RunProcReturn("select * from Gy_ClassTimePrjSub where HItemID=" + HItemID, "Gy_ClassTimePrjSub"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ²¡ææ°æ®ï¼æ æ³å é¤ï¼"; objJsonResult.data = null; return objJsonResult; ; } //var HStopflag = Convert.ToBoolean(ds.Tables[0].Rows[0]["HStopflag"]); //if (HStopflag) //{ // oCN.RollBack();//åæ»äºå¡ // objJsonResult.code = "0"; // objJsonResult.count = 0; // objJsonResult.Message = "æ°æ®å·²å 餿 æ³å次å é¤ï¼"; // objJsonResult.data = null; // return objJsonResult; //} ds1 = oCN.RunProcReturn("Select HItemID from Gy_ClassTimePrjSub Where HParentID='" + HItemID + "'", "Gy_ClassTimePrjSub"); if (ds1.Tables[0].Rows.Count != 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¤é¡¹ç®åå¨å项ç®ï¼ä¸è½å é¤ï¼"; objJsonResult.data = null; return objJsonResult; } string HUseFlag = Convert.ToString(ds.Tables[0].Rows[0]["HUseFlag"]); if (HUseFlag == "已使ç¨") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¤é¡¹ç®å·²ä½¿ç¨ï¼ä¸è½å é¤ï¼"; objJsonResult.data = null; return objJsonResult; } oCN.RunProc("delete from Gy_ClassTimePrjSub where HItemID=" + HItemID); oCN.RunProc("delete from Gy_ClassTimePrjSub where HInterID=" + HItemID); oCN.Commit();//æäº¤äºå¡ objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "* æ°æ®å 餿åï¼"; objJsonResult.Message = "æ°æ®å 餿åï¼"; objJsonResult.data = null; return objJsonResult; ; WebAPI/Models/»ù´¡×ÊÁÏ/Gy_ClassTimePrjSub.cs
@@ -8,11 +8,10 @@ public class Gy_ClassTimePrjSub { public long HInterID { get; set; } public long HItemID { get; set; } public long HEntryID { get; set; } public string HName { get; set; } public string HNumber { get; set; } public long hparentid { get; set; } public string HYear { get; set; } public decimal HPeriod { get; set; } public decimal HSumMoney { get; set; } WebAPI/WebAPI.csproj
@@ -32,7 +32,7 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <Prefer32Bit>false</Prefer32Bit> <PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> WebAPI/WebServer.cs
@@ -4429,6 +4429,14 @@ //è¿åç¼ååè¡¨ä¿¡æ¯ åæ¥èµæ public DataSet GetKf_PonderationBillMain_TempList_New(string sHBillType, string sHMaker, Int64 sHOWNERID) { DAL.ClsKF_PonderationBillMain_Temp_View dal = new DAL.ClsKF_PonderationBillMain_Temp_View(); return dal.GetKf_PonderationBillMain_TempList_New(sHBillType, sHMaker, sHOWNERID); } //è¿åç¼ååè¡¨ä¿¡æ¯ åæ¥èµæ public DataSet GetKf_PonderationBillMain_TempList(string sHBillType, string sWhere) { DAL.ClsKF_PonderationBillMain_Temp_View dal = new DAL.ClsKF_PonderationBillMain_Temp_View(); @@ -4437,6 +4445,7 @@ /// <summary> /// çæå¤è´å ¥åºå /// </summary> WorkM/Á÷ת¿¨¹ÜÀí/MES_StationOutBill.cs
@@ -591,7 +591,7 @@ MessageBox.Show("å·¥ä½ä¸å¿æ²¡æéæ©ï¼", "æç¤º"); return false; } if (DBUtility.ClsPub.isDoule(txtHQty.Text) + DBUtility.ClsPub.isDoule(txtHWasterQty.Text) <= 0) if (DBUtility.ClsPub.isDoule(txtHQty.Text) + DBUtility.ClsPub.isDoule(txtHWasterQty.Text) + DBUtility.ClsPub.isDoule(txtHBadCount.Text) <= 0) { MessageBox.Show("æ°éä¸è½ä¸º0ï¼", "æç¤º"); return false;