| | |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | | |
| | | public class WEBSController : ApiController |
| | | { |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | |
| | | /// <returns></returns> |
| | | [Route("WEBSController/GetUser_Json")] |
| | | [HttpGet] |
| | | [AllowAnonymous] |
| | | public object GetUser_Json(string HUserNumber, string HPassWord, Int64 HStockOrgID, string HStockOrgName) |
| | | { |
| | | try |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if(!oSystemParameter.ShowBill(ref DBUtility.ClsPub.sErrInfo)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ç»å½å¼å¸¸ï¼Token çæå¼å¸¸ï¼æ æ³è·åå
¬å¸ä¿¡æ¯ï¼"; |
| | | } |
| | | |
| | | string tokenStr = JWTHelper.GenerateToken(ds.Tables[0].Rows[0]["Czybm"].ToString(), ds.Tables[0].Rows[0]["Czymc"].ToString()); |
| | | |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ç»å½æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | JObject jobjJsonResult = JObject.FromObject(objJsonResult); |
| | | jobjJsonResult["token"] = tokenStr; |
| | | return jobjJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ´æ°æ¡ç åºå
¥åºç¼åå表æ¡ç è®°å½å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.Message = "æ´æ°æ¡ç åºå
¥åºç¼åå表æ¡ç è®°å½å¤±è´¥ï¼" + e.Message.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | |
| | | /// <returns></returns> |
| | | [Route("WEBSController/set_SavePOStockInBill_Json")] |
| | | [HttpPost] |
| | | [Permission(HModName = "Kf_POStockInBill", Operate = "_Edit")] |
| | | public object set_SavePOStockInBill_Json([FromBody] JObject oMain) |
| | | { |
| | | var _value = oMain["oMain"].ToString(); |