Exemplo n.º 1
0
        /// <summary>
        /// 弃审
        /// </summary>
        /// <param name="billCode"></param>
        /// <returns></returns>

        public ActionResult GiveupExamine(string billCode)
        {
            string res = "";

            if (string.IsNullOrEmpty(billCode))
            {
                res = "参数错误";
            }
            else
            {
                res = OtherExpenseListService.GiveupExamine(Guid.Parse(billCode), Session["UserName"].ToString());
            }
            return(Content(res));
        }
Exemplo n.º 2
0
        //保存表单数据
        public ActionResult SaveData(OtherExpenseList OtherExpenseList)
        {
            if (Session["billType"] == null)//是否有单据类型
            {
                return(Content("没有单据类型!"));
            }
            int billtype = Convert.ToInt32(Session["billType"].ToString().Trim());

            //参数对象可以对应接受数据
            OtherExpenseList.MakePerson = Session["UserName"].ToString();                 //保存制单人
            string result = OtherExpenseListService.SaveData(OtherExpenseList, billtype); //保存数据

            return(Content(result.ToString()));
        }
Exemplo n.º 3
0
        /// <summary>
        /// 审核表单
        /// </summary>
        /// <returns></returns>
        public ActionResult Examine2()
        {
            string res = "";
            string OtherExpenseListId = Request.Params["OtherExpenseListId"];

            if (string.IsNullOrEmpty(OtherExpenseListId))
            {
                res = "参数错误";
            }
            else
            {
                res = OtherExpenseListService.Examine2(Guid.Parse(OtherExpenseListId), Session["UserName"].ToString());
            }
            return(Content(res));
        }
Exemplo n.º 4
0
        //获取表单数据
        public ActionResult GetData()
        {
            //if (Session["billType"] == null)//是否有单据类型
            //{
            //    return Content("没有单据类型!");
            //}
            string str = Request.Params["OtherExpenseListId"];//单号

            //如果新单据 没有数据
            if (string.IsNullOrEmpty(str))
            {
                return(Json(new OtherExpenseList()));//返回一个新建的空对象
            }
            // int billtype = Convert.ToInt32(Session["billType"].ToString().Trim());
            //如果有数据
            Guid             OtherExpenseListId = new Guid(str);                                                            //单据编号
            OtherExpenseList bill = OtherExpenseListService.LoadEntities(t => t.Id == OtherExpenseListId).FirstOrDefault(); //获取表单

            return(Json(bill));
        }
Exemplo n.º 5
0
 /// <summary>
 /// 删除订单
 /// </summary>
 /// <param name="billCode">单号</param>
 /// <returns></returns>
 public ActionResult DeleteBill(Guid BillId)
 {
     return(Content(OtherExpenseListService.DeleteBill(BillId)));
 }