public ActionResult DoEdit(Docking_Info p_Docking_Info) { try { Docking_BL _obj_bl = new Docking_BL(); p_Docking_Info.Modify_By = SessionData.CurrentUser.Username; p_Docking_Info.Modify_Date = DateTime.Now; p_Docking_Info.Language_Code = AppsCommon.GetCurrentLang(); p_Docking_Info.Document_Name = p_Docking_Info.Document_Name_Type + p_Docking_Info.Document_Name_Other; if (p_Docking_Info.File_Upload != null) { var url_File_Upload = AppLoadHelpers.PushFileToServer(p_Docking_Info.File_Upload, AppUpload.Document); p_Docking_Info.FileName = p_Docking_Info.File_Upload.FileName; p_Docking_Info.Url = url_File_Upload; } else { p_Docking_Info.FileName = "NA"; p_Docking_Info.Url = "NA"; } decimal _ck = _obj_bl.Docking_Update(p_Docking_Info); return(Json(new { success = _ck })); } catch (Exception ex) { Logger.LogException(ex); return(Json(new { success = "-1" })); } }
public ActionResult GetView2View(decimal p_id) { try { Docking_BL _obj_bl = new Docking_BL(); Docking_Info _Docking_Info = _obj_bl.Docking_GetBy_Id(p_id); return(View("~/Areas/Manager/Views/Docking/_PartialView.cshtml", _Docking_Info)); } catch (Exception ex) { Logger.LogException(ex); return(View("~/Areas/Manager/Views/Docking/_PartialView.cshtml", new Docking_Info())); } }
public ActionResult GetView2CompleteDoc(string p_case_code) { try { Docking_BL _obj_bl = new Docking_BL(); Docking_Info _Docking_Info = _obj_bl.Docking_GetBy_DocCaseCode(p_case_code); return(View("~/Areas/Manager/Views/Docking/_PartialChangeStatus.cshtml", _Docking_Info)); } catch (Exception ex) { Logger.LogException(ex); return(View("~/Areas/Manager/Views/Docking/_PartialChangeStatus.cshtml")); } }
public ActionResult GetView2UpdateStatus(int p_id) { try { Docking_BL _obj_bl = new Docking_BL(); Docking_Info _Docking_Info = _obj_bl.Docking_GetBy_Id(p_id); return(View("~/Areas/Manager/Views/Docking/_PartialChangeStatus.cshtml", _Docking_Info)); } catch (Exception ex) { Logger.LogException(ex); return(View("~/Areas/Manager/Views/Docking/_PartialChangeStatus.cshtml")); } }
public decimal Docking_Update(Docking_Info p_Docking_Info) { try { Docking_DA _da = new Docking_DA(); return(_da.Docking_Update(p_Docking_Info.Docking_Id, p_Docking_Info.Docking_Type, p_Docking_Info.Document_Name, p_Docking_Info.Document_Name_Type, p_Docking_Info.Document_Name_Other, p_Docking_Info.Document_Type, p_Docking_Info.Status, p_Docking_Info.Deadline, p_Docking_Info.Isshowcustomer, p_Docking_Info.In_Out_Date, p_Docking_Info.Modify_By, p_Docking_Info.Modify_Date, p_Docking_Info.Language_Code, p_Docking_Info.Url, p_Docking_Info.Notes, p_Docking_Info.Place_Submit, p_Docking_Info.FileName)); } catch (Exception ex) { Logger.LogException(ex); return(-1); } }