| | |
| | | return objjson; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | //[Route("Web/Get_MaxBillNoAndID")] |
| | | //[HttpGet] |
| | | //public object Get_MaxBillNoAndID(string HBillType) |
| | | //{ |
| | | // try |
| | | // { |
| | | // string HBillNo = ""; |
| | | // Int64 HInterID = 0;//显示的字段 |
| | | // HInterID = DBUtility.ClsPub.CreateBillID(HBillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | // HBillNo = DBUtility.ClsPub.CreateBillCode(HBillType, ref DBUtility.ClsPub.sExeReturnInfo, true); |
| | | // //----------创建虚表------------------------ |
| | | // DataTable dt_Main = new DataTable("Json"); |
| | | // dt_Main.Columns.Add("HBillNo", typeof(string)); |
| | | // dt_Main.Columns.Add("HInterID", typeof(int)); |
| | | // //---------创建新行------------------------ |
| | | // DataRow dr_main = dt_Main.NewRow();//创建新行 |
| | | // dt_Main.Rows.Add(dr_main);//将新行加入到表中 |
| | | // dr_main["HBillNo"] = DBUtility.ClsPub.isStrNull(HBillNo); |
| | | // dr_main["HInterID"] = DBUtility.ClsPub.isLong(HInterID); |
| | | |
| | | // if (HBillNo == null || HInterID == 0) |
| | | // { |
| | | // objjson.code = "0"; |
| | | // objjson.count = 0; |
| | | // objjson.Message = "获取失败"; |
| | | // objjson.data = null; |
| | | // return objjson; |
| | | // } |
| | | // else |
| | | // { |
| | | // objjson.code = "0"; |
| | | // objjson.count = 1; |
| | | // objjson.Message = "获取成功"; |
| | | // objjson.data = dt_Main; |
| | | // return objjson; |
| | | // } |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // objjson.code = "0"; |
| | | // objjson.count = 0; |
| | | // objjson.Message = "获取失败" + e.ToString(); |
| | | // objjson.data = null; |
| | | // return objjson; |
| | | // } |
| | | //} |
| | | /// <summary> |
| | | /// 登录 |
| | | /// </summary> |