public ActionResult App_Notice_Detail()
        {
            try
            {
                if (SessionData.CurrentUser == null)
                {
                    return(Redirect("/"));
                }

                string p_case_code = "";
                if (RouteData.Values.ContainsKey("id"))
                {
                    p_case_code = RouteData.Values["id"].ToString();
                }

                // LẤY THÔNG TIN CỦA THẰNG NOTICE APP
                App_Notice_Info_BL _notice_BL       = new App_Notice_Info_BL();
                App_Notice_Info    _App_Notice_Info = _notice_BL.App_Notice_GetBy_CaseCode(p_case_code);
                ViewBag.App_Notice_Info = _App_Notice_Info;
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return(View("/Areas/TradeMark/Views/Application/After_Filing/ViewDetail_NoticeApp.cshtml"));
        }
Example #2
0
 public decimal App_Notice_Insert(App_Notice_Info p_obj, string p_language_code)
 {
     try
     {
         App_Notice_Info_DA _da = new App_Notice_Info_DA();
         return(_da.App_Notice_Insert(p_obj.Case_Code, p_obj.Notice_Number, p_obj.Notice_Date, p_obj.Notice_Type,
                                      p_obj.Notice_Url, p_obj.Notice_Trans_Url, p_obj.Result, p_obj.Accept_Date, p_obj.Exp_Date, p_obj.Accept_Url, p_obj.Reject_Reason, p_obj.Status, p_obj.Advise_Replies,
                                      p_obj.Billing_Id, p_obj.Billing_Url, p_obj.Created_By, p_obj.Note, p_obj.Replies_Deadline));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(-1);
     }
 }
        public ActionResult App_Re_Grant2Lawer()
        {
            try
            {
                if (SessionData.CurrentUser == null)
                {
                    return(Redirect("/"));
                }

                string p_case_code = "";
                if (RouteData.Values.ContainsKey("id"))
                {
                    p_case_code = RouteData.Values["id"].ToString();
                }

                // action là view hay sửa
                decimal _operator_type = Convert.ToDecimal(Common.CommonData.CommonEnums.Operator_Type.Update);
                if (RouteData.Values.ContainsKey("id1"))
                {
                    _operator_type = Convert.ToDecimal(RouteData.Values["id1"].ToString());
                }
                ViewBag.Operator_Type = _operator_type;

                Application_Header_BL _objBl = new Application_Header_BL();
                ApplicationHeaderInfo _ApplicationHeaderInfo = _objBl.GetApp_By_Case_Code_Todo(p_case_code, SessionData.CurrentUser.Username, AppsCommon.GetCurrentLang());

                string pAppCode = _ApplicationHeaderInfo.Appcode;
                SessionData.CurrentUser.chashFile.Clear();

                ViewBag.Appcode          = pAppCode;
                ViewBag.Currstatus       = (int)_ApplicationHeaderInfo.Status;
                ViewBag.objAppHeaderInfo = _ApplicationHeaderInfo;

                // ép cứng đến 1 trạng thái
                ViewBag.Re_Grant = 1;
                if (RouteData.Values.ContainsKey("id2"))
                {
                    ViewBag.Hard_Status = Convert.ToDecimal(RouteData.Values["id2"].ToString());
                }

                //  lấy dữ liệu lịch sử giao dịch
                B_Todos_BL           _B_Todos_BL = new B_Todos_BL();
                List <B_Remind_Info> _ListRemind = new List <B_Remind_Info>();
                List <B_Todos_Info>  _Listtodo   = _B_Todos_BL.NotifiGetByCasecode(p_case_code, ref _ListRemind);
                ViewBag.ListTodo   = _Listtodo;
                ViewBag.ListRemind = _ListRemind;

                // sau advise filing
                if (_ApplicationHeaderInfo.Status >= (decimal)CommonEnums.App_Status.AdminGuiKetQuaNopDon && _ApplicationHeaderInfo.Status != (decimal)CommonEnums.App_Status.AdminTuChoiKetQuaNopDon)
                {
                    // LẤY THÔNG TIN CỦA THẰNG NOTICE APP
                    App_Notice_Info_BL _notice_BL       = new App_Notice_Info_BL();
                    App_Notice_Info    _App_Notice_Info = _notice_BL.App_Notice_GetBy_CaseCode(p_case_code);
                    ViewBag.App_Notice_Info = _App_Notice_Info;

                    return(View("/Areas/TradeMark/Views/Shared/AppDetail/AppDetails_After_Filing.cshtml"));
                }
                else
                {
                    return(View("/Areas/TradeMark/Views/Shared/AppDetail/AppDetails.cshtml"));
                }
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(View("/Areas/TradeMark/Views/Shared/AppDetail/AppDetails.cshtml"));
            }
        }