예제 #1
0
        public ActionResult Edit()
        {
            try
            {
                string _url = "/ModuleContracts/Refuse/List";
                string _ok  = CommonFunc.Nvs_Redirect_QuyenTruyCapUser(_url);
                if (_ok != "")
                {
                    return(Redirect(_ok));
                }

                decimal _id = 0;
                if (RouteData.Values["id"] != null)
                {
                    _id = Convert.ToDecimal(RouteData.Values["id"]);
                }
                if (RouteData.Values["id1"] != null)
                {
                    ViewBag.CurrTab = Convert.ToInt16(RouteData.Values["id1"]);
                }
                else
                {
                    ViewBag.CurrTab = 3;
                }

                ContractBL     _ObjBL   = new ContractBL();
                Contracts_Info _objInfo = _ObjBL.Contract_GetById(_id);
                return(View(_objInfo));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(View());
            }
        }
예제 #2
0
 public ActionResult ViewDetails(decimal p_id)
 {
     try
     {
         ContractBL     _ObjBL   = new ContractBL();
         Contracts_Info _objInfo = _ObjBL.Contract_GetById(p_id);
         return(PartialView("ViewDetails", _objInfo));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(View());
     }
 }
예제 #3
0
        public ActionResult ViewDetails(decimal p_id)
        {
            try
            {
                ContractBL     _ObjBL   = new ContractBL();
                Contracts_Info _objInfo = _ObjBL.Contract_GetById(p_id);
                //Declaration_BL _Declaration_BL = new Declaration_BL();

                //List<Declaration_Info> _lstDeclare = _Declaration_BL.Declaration_GetByContract(p_id);
                //ViewBag.LstDeclaration = _lstDeclare;

                return(PartialView("ViewDetails", _objInfo));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(View());
            }
        }