|  |  |  | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | [Route("Gy_GroupEmpBill/GetGroupEmpBill")] | 
|---|
|  |  |  | [HttpGet] | 
|---|
|  |  |  | public object GetGroupEmpBill(string sWhere) | 
|---|
|  |  |  | public object GetGroupEmpBill(string sWhere,string user) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (!DBUtility.ClsPub.Security_Log("Gy_Group", 1, false, user)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 0; | 
|---|
|  |  |  | objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒"; | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ds = Sc_GetGroupEmpBill(sWhere); | 
|---|
|  |  |  | objJsonResult.code = "1"; | 
|---|
|  |  |  | objJsonResult.count = 1; | 
|---|
|  |  |  | 
|---|
|  |  |  | string msg2 = sArray[0].ToString(); | 
|---|
|  |  |  | string msg3 = sArray[1].ToString(); | 
|---|
|  |  |  | string refSav = sArray[2].ToString(); | 
|---|
|  |  |  | //string msg4 = sArray[3].ToString(); | 
|---|
|  |  |  | string msg4 = sArray[3].ToString(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | string UserName = ""; | 
|---|
|  |  |  | string s = ""; | 
|---|
|  |  |  | 
|---|
|  |  |  | ListModels oListModels = new ListModels(); | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ////缂栬緫鏉冮檺 | 
|---|
|  |  |  | //if (!DBUtility.ClsPub.Security_Log_second("Gy_GroupEmpBill_Edit", 1, false, msg4)) | 
|---|
|  |  |  | //{ | 
|---|
|  |  |  | //    objJsonResult.code = "0"; | 
|---|
|  |  |  | //    objJsonResult.count = 0; | 
|---|
|  |  |  | //    objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒"; | 
|---|
|  |  |  | //    objJsonResult.data = null; | 
|---|
|  |  |  | //    return objJsonResult; | 
|---|
|  |  |  | //} | 
|---|
|  |  |  | //缂栬緫鏉冮檺 | 
|---|
|  |  |  | if (!DBUtility.ClsPub.Security_Log_second("Gy_Group_Edit", 1, false, msg4)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 0; | 
|---|
|  |  |  | objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒"; | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | DLL.ClsGy_GroupEmpBill oBill = new DLL.ClsGy_GroupEmpBill(); | 
|---|
|  |  |  | List<Models.ClsGy_GroupEmpListMain> lsmain = new List<Models.ClsGy_GroupEmpListMain>(); | 
|---|
|  |  |  | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | [Route("Gy_GroupEmpBill/DeltetGroupEmpBill")] | 
|---|
|  |  |  | [HttpGet] | 
|---|
|  |  |  | public object DeltetGroupEmpBill(string HInterID) | 
|---|
|  |  |  | public object DeltetGroupEmpBill(string HInterID,string user) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | if (!DBUtility.ClsPub.Security_Log("Gy_Group_Delete", 1, false, user)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 0; | 
|---|
|  |  |  | objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒"; | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | oCN.BeginTran(); | 
|---|
|  |  |  | oCN.RunProc("Delete From Gy_GroupEmpListMain where HInterID = " + HInterID); | 
|---|
|  |  |  | oCN.RunProc("Delete From Gy_GroupEmpListSub where HInterID = " + HInterID); | 
|---|