|  |  |  | 
|---|
|  |  |  | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); | 
|---|
|  |  |  | DataSet ds; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 根据基础资料ID 查找记录 | 
|---|
|  |  |  | ///参数:string sql。 | 
|---|
|  |  |  | ///返回值:object。 | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | [Route("Gy_Department/cx")] | 
|---|
|  |  |  | [HttpGet] | 
|---|
|  |  |  | public object cx(long HInterID) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ds = oCN.RunProcReturn("select * from Gy_Department where hitemid =  " + HInterID, "Gy_Department"); | 
|---|
|  |  |  | ///// <summary> | 
|---|
|  |  |  | ///// 根据基础资料ID 查找记录 | 
|---|
|  |  |  | /////参数:string sql。 | 
|---|
|  |  |  | /////返回值:object。 | 
|---|
|  |  |  | ///// </summary> | 
|---|
|  |  |  | //[Route("Gy_Department/cx")] | 
|---|
|  |  |  | //[HttpGet] | 
|---|
|  |  |  | //public object cx(long HInterID) | 
|---|
|  |  |  | //{ | 
|---|
|  |  |  | //    try | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //        ds = oCN.RunProcReturn("select * from Gy_Department where hitemid =  " + HInterID, "Gy_Department"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | objJsonResult.code = "1"; | 
|---|
|  |  |  | objJsonResult.count = 1; | 
|---|
|  |  |  | objJsonResult.Message = "Sucess!"; | 
|---|
|  |  |  | objJsonResult.data = ds.Tables[0]; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | catch (Exception e) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 0; | 
|---|
|  |  |  | objJsonResult.Message = "Exception!" + e.ToString(); | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //            objJsonResult.code = "1"; | 
|---|
|  |  |  | //            objJsonResult.count = 1; | 
|---|
|  |  |  | //            objJsonResult.Message = "Sucess!"; | 
|---|
|  |  |  | //            objJsonResult.data = ds.Tables[0]; | 
|---|
|  |  |  | //            return objJsonResult; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //    catch (Exception e) | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //        objJsonResult.code = "0"; | 
|---|
|  |  |  | //        objJsonResult.count = 0; | 
|---|
|  |  |  | //        objJsonResult.Message = "Exception!" + e.ToString(); | 
|---|
|  |  |  | //        objJsonResult.data = null; | 
|---|
|  |  |  | //        return objJsonResult; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 部门列表删除按钮 | 
|---|
|  |  |  | 
|---|
|  |  |  | ///参数:string sql。 | 
|---|
|  |  |  | ///返回值:object。 | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | [Route("Gy_Department/AddBill1")] | 
|---|
|  |  |  | [Route("Gy_StockPlaceController/AddBill1")] | 
|---|
|  |  |  | [HttpPost] | 
|---|
|  |  |  | public object AddBill1([FromBody] JObject oMain) | 
|---|
|  |  |  | { | 
|---|