zrg
2024-02-04 94c1fd6b7540d574d19234f21c10d6517d9a6423
WebAPI/Controllers/ÏîÄ¿¹ÜÀí/¹¤×÷Öܼƻ®/PM_WorkTaskWeekBillController.cs
@@ -884,9 +884,9 @@
        #endregion
        #region å·¥ä½œå‘¨æ€»ç»“ èŽ·å–åˆ—è¡¨æ•°æ®
        [Route("PM_WorkTaskWeekBill/PM_WorkReportWeekBillMainList")]
        [Route("PM_WorkTaskWeekBill/PM_WorkReportWeekBillList")]
        [HttpGet]
        public object PM_WorkReportWeekBillMainList(string sWhere, string user)
        public object PM_WorkReportWeekBillList(string sWhere, string user)
        {
            try
            {
@@ -1369,5 +1369,59 @@
            }
        }
        #endregion
        #region å·¥ä½œå‘¨æ€»ç»“ åˆ é™¤
        /// <summary>
        ///参数:string HInterID。
        ///返回值:object。
        /// </summary>
        [Route("PM_WorkTaskWeekBill/PM_WorkReportWeekBillMainDelete")]
        [HttpGet]
        public object PM_WorkReportWeekBillMainDelete(string HInterID, string user)
        {
            try
            {
                //查看权限
                if (!DBUtility.ClsPub.Security_Log("PM_WorkReportWeekBillMain_Drop", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无删除权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                if (HInterID == null || HInterID.Equals(""))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "HInterID不能为空!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                oCn.BeginTran();
                oCn.RunProc("delete from PM_WorkReportWeekBillMain where HInterID = " + HInterID);
                //oCn.RunProc("delete from PM_WorkTaskWeekBillSub where HInterID='" + HInterID + "'");
                oCn.Commit();
                objJsonResult.code = "1";
                objJsonResult.count = 1;
                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
    }
}