示例#1
0
        public ActionResult DoAudit(int o)
        {
            QuestionOrderType obj = GetById(o);

            if (obj.Subjest.IndexOf("重发") != -1)
            {
                OrderType orderType = NSession.Get <OrderType>(obj.OId);
                if (orderType != null)
                {
                    orderType.IsAudit    = 1;
                    orderType.IsError    = 0;
                    orderType.CutOffMemo = "";
                    NSession.Update(orderType);
                    NSession.Flush();
                    obj.Status = 1;
                    NSession.Update(obj);
                    NSession.Flush();
                    OrderHelper.GetOrderRecord(orderType, "重发订单审核!", "" + CurrentUser.Realname + "确认该订单的审核", CurrentUser.Realname, NSession);
                }
            }
            return(Json(new { IsSuccess = "true" }));
        }
示例#2
0
 public ActionResult Edit(UserType obj)
 {
     try
     {
         OrganizeType obj1 = NSession.Get <OrganizeType>(obj.DId);
         if (obj1 != null)
         {
             obj.DepartmentName = obj1.ShortName;
         }
         OrganizeType obj2 = NSession.Get <OrganizeType>(obj.CId);
         if (obj2 != null)
         {
             obj.CompanyName = obj2.ShortName;
         }
         NSession.Update(obj);
         NSession.Flush();
     }
     catch (Exception ee)
     {
         return(Json(new { IsSuccess = false, ErrorMsg = "出错了" }));
     }
     return(Json(new { IsSuccess = true }));
 }
示例#3
0
        public ContentResult PrintData(int Id)
        {
            PrintDataType data = NSession.Get <PrintDataType>(Id);

            return(Content(data.Content, "text/xml"));
        }