| | |
| | | public class Xt_XtgnbController : ApiController |
| | | { |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | |
| | | private json objJsonResult = new json(); |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | DataSet ds; |
| | | |
| | | |
| | | /// <summary> |
| | | /// 返回系统模块列表 |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 新增单据-保存按钮 |
| | | ///参数:string sql。 |
| | |
| | | //反序列化 |
| | | msg1 = "[" + msg1.ToString() + "]"; |
| | | |
| | | |
| | | |
| | | List<xtgnb> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<xtgnb>>(msg1); |
| | | |
| | | long HItemID = list[0].id; |
| | |
| | | string useflag = list[0].useflag; |
| | | string netmenulist = list[0].netmenulist; |
| | | string buyFlag = list[0].buyflag; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //若MAINDI重复则重新获取 |
| | | oCN.BeginTran(); |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | #region 收款单 删除 |
| | | /// <summary> |
| | | /// 系统功能列表删除按钮 |
| | | ///参数:string sql。 |
| | | ///参数:string HInterID。 |
| | | ///返回值:object。 |
| | | /// </summary> |
| | | [Route("Xt_Xtgnb/Delete_Json")] |
| | | [Route("YS_ReceiveBill/delete_Test")] |
| | | [HttpGet] |
| | | public object Delete_Json(long HItemID) |
| | | public object deleteYS_ReceiveBill(long HItemID) |
| | | { |
| | | |
| | | try |
| | | { |
| | | //若MAINDI重复则重新获取 |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | // |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 获取编辑对象数据 |
| | | /// </summary> |
| | | /// <param name="HItemID"></param> |
| | | /// <returns></returns> |
| | | [Route("Xt_Xtgnb/get_Bill")] |
| | | [HttpGet] |
| | | public object getBill(long HItemID) |
| | | { |
| | | try |
| | | { |
| | | |
| | | ds = oCN.RunProcReturn("select * from h_v_Xt_XtgnbList where Hitemid =" + HItemID, "h_v_Xt_XtgnbList"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "false!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |