public ActionResult GetPreviousDayLockedDCR(string Usr_Code) { //Declare variable to Business Layer BL_AllowPreviousDayDCR _objallowPrvDayDCR = new BL_AllowPreviousDayDCR(); List <Allow_PreviousDayDCR> lstPrvDayDCR = new List <Allow_PreviousDayDCR>(); _objCurrentInfo = new CurrentInfo(); CompCode = _objCurrentInfo.GetCompanyCode(); lstPrvDayDCR = _objallowPrvDayDCR.GetPreviousDayDCR(CompCode, Usr_Code, '2'); return(Json(lstPrvDayDCR, JsonRequestBehavior.AllowGet)); }
public bool InsertPreviousDayDCR(string UCodes, string DCRDt, string Remarks) { try { // Creates Instance. _objCurrentInfo = new CurrentInfo(); string LoggedUserCode = string.Empty; //Declare variable to Business Layer BL_AllowPreviousDayDCR _objallowPrvDayDCR = new BL_AllowPreviousDayDCR(); // Retrieve the Sessions. CompCode = _objCurrentInfo.GetCompanyCode(); LoggedUserCode = _objCurrentInfo.GetUserCode(); // Inserts the DCR Manual lock. return(_objallowPrvDayDCR.InsertPreDayDCR(CompCode, UCodes, LoggedUserCode, DCRDt, Remarks)); } catch (Exception ex) { throw ex; } }