/// <summary> /// 查询销售订单 /// </summary> /// <returns></returns> public ActionResult GetOrder() { string SnNum = WebUtil.GetFormValue <string>("SnNum"); string CompanyID = WebUtil.GetFormValue <string>("CompanyID", string.Empty); SaleOrderEntity entity = new SaleOrderEntity(); entity.SnNum = SnNum; entity.CompanyID = CompanyID; Bill <SaleOrderEntity, SaleDetailEntity> bill = new SaleOrder(CompanyID); SaleOrderEntity result = bill.GetOrder(entity); DataResult <SaleOrderEntity> dataResult = new DataResult <SaleOrderEntity>(); dataResult.Code = (int)EResponseCode.Success; dataResult.Message = "响应成功"; dataResult.Result = result; return(Content(JsonHelper.SerializeObject(dataResult))); }