Пример #1
0
 public ActionResult SubmitAuthorizeForm(int man)
 {
     try
     {
         AppointManApp appointMan = new AppointManApp();
         var           authorize  = appointMan.GetForm();
         var           queryList  = applyBillApp.GetPointList(authorize.man);
         var           pointMan   = appointMan.SubmitForm(man);
         foreach (var item in queryList)
         {
             if (item.appExaMan.Equals(authorize.man))
             {
                 item.appExaMan = pointMan.man;
             }
             else if (item.appAuthMan.Equals(authorize.man))
             {
                 item.appAuthMan = pointMan.man;
             }
             else if (item.purExaMan.Equals(authorize.man))
             {
                 item.purExaMan = pointMan.man;
             }
             else
             {
                 item.purAuthMan = pointMan.man;
             }
             applyBillApp.SubmitForm(item, item.ID);
         }
         return(Success("操作成功。"));
     }
     catch (Exception)
     {
         return(Error("操作失败。"));
     }
 }
Пример #2
0
        public ActionResult GetAuthorizeList()
        {
            var list = new AppointManApp().GetALLList();

            return(Content(list.ToJson()));
        }
Пример #3
0
        public ActionResult GetAuthorize()
        {
            var man = new AppointManApp().GetForm();

            return(Content(man.ToJson()));
        }