zzr99
2022-02-10 919ffdcf960b886d99a1977767add03ba42e4cd1
WebAPI/Controllers/基础资料/基础资料/Gy_ConkReasonBillController.cs
@@ -22,10 +22,20 @@
        #region 鏁呴殰鍘熷洜鍒楄〃
        [Route("Gy_ConkReasonBill/Get_ConkReasonBillList")]
        [HttpGet]
        public object Get_ConkReasonBillList(string sWhere)
        public object Get_ConkReasonBillList(string sWhere,string user)
        {
            try
            {
                //鏌ョ湅鏉冮檺
                if (!DBUtility.ClsPub.Security_Log("Gy_ConkReason", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                ds = Sc_GetConkReasonBill(sWhere);
                if (ds == null)
                {
@@ -72,8 +82,18 @@
        #region [鏁呴殰鍘熷洜鍒犻櫎鍔熻兘]
        [Route("Gy_ConkReasonBill/set_DeleteBill")]
        [HttpGet]
        public object set_DeleteBill(string HItemID)
        public object set_DeleteBill(string HItemID,string user)
        {
            //鍒犻櫎鏉冮檺
            if (!DBUtility.ClsPub.Security_Log("Gy_ConkReason_Delete", 1, false, user))
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒";
                objJsonResult.data = null;
                return objJsonResult;
            }
            Int64 lngBillKey = 0;
            lngBillKey = DBUtility.ClsPub.isLong(HItemID);
            if (lngBillKey == 0)
@@ -158,6 +178,15 @@
            ListModels oListModels = new ListModels();
            try
            {
                //鏌ョ湅鏉冮檺
                if (!DBUtility.ClsPub.Security_Log("Gy_ConkReason_Edit", 1, false, msg3))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                Model.ClsGy_ConkReason_Model oBill = new Model.ClsGy_ConkReason_Model();
                List<Model.ClsGy_ConkReason_Model> lsmain = new List<Model.ClsGy_ConkReason_Model>();
                msg1 = msg1.Replace("\\", "");