public static List <LtoIncentive_tblLtoIncentiveDetail> getIncentiveDetail(NameValueCollection querystring)
        {
            int intParser;
            int intIDLtoIncentive = int.TryParse(querystring.Get("intIDLtoIncentive"), out intParser) ? intParser : 0;

            return(LtoIncentiveDal.getIncentiveDetail(intIDLtoIncentive));
        }
        public static List <LtoIncentive_SearchCVForProcessing> searchCV(NameValueCollection querystring)
        {
            string strCriteria            = querystring.Get("strCriteria");
            int    intIDLtoRFBankAccounts = int.Parse(querystring.Get("intIDLtoRFBankAccounts"));
            int    intIDCompany           = int.Parse(querystring.Get("intIDCompany"));

            return(LtoIncentiveDal.searchCV(strCriteria, intIDLtoRFBankAccounts, intIDCompany));
        }
        public static ManageResult removeCVRecord(NameValueCollection querystring)
        {
            UserProfile userProfile = WebCommon.GetUserProfile();
            int         intParser;

            int intIDSecUser             = int.Parse(userProfile.UserId.ToString());
            int intIDLtoIncentiveDetails = int.TryParse(querystring.Get("intIDLtoIncentiveDetails"), out intParser) ? intParser : 0;

            return(LtoIncentiveDal.removeCVRecord(intIDSecUser, intIDLtoIncentiveDetails));
        }
        public static LtoIncentive_ApproveIncentive approveIncentive(NameValueCollection querystring)
        {
            UserProfile userProfile = WebCommon.GetUserProfile();

            int    intParser;
            int    intIDLtoIncentive = int.TryParse(querystring.Get("intIDLtoIncentive"), out intParser) ? intParser : 0;
            string DateApproved      = querystring.Get("DateApproved");
            int    intIDSecUser      = int.Parse(userProfile.UserId.ToString());

            return(LtoIncentiveDal.approveIncentive(intIDLtoIncentive, DateApproved, intIDSecUser));
        }
        public static ManageResult manage(NameValueCollection querystring, NameValueCollection formdata)
        {
            UserProfile userProfile = WebCommon.GetUserProfile();

            var cvList = new List <LtoIncentive_SearchCVForProcessing>();

            string strData1;
            int    intParser;

            strData1 = formdata[0].ToString().Substring(formdata[0].ToString().IndexOf("],[") + 1, formdata[0].Length - formdata[0].ToString().IndexOf("],[") - 1);
            cvList   = (List <LtoIncentive_SearchCVForProcessing>)cvList.ToClass(strData1);

            var mst = new LtoIncentive_tblLtoIncentive
            {
                intIDLtoIncentive       = int.TryParse(querystring.Get("intIDLtoIncentive"), out intParser) ? intParser : 0,
                datTransaction          = querystring.Get("TransactionDate"),
                intIDMasEmployeeLiaison = int.TryParse(querystring.Get("intIDMasEmployee"), out intParser) ? intParser : 0,
                Homebase = querystring.Get("Homebase"),
                intIDMasEmployeeLtoStaff = int.TryParse(querystring.Get("intIDMasEmployeeLtoStaff"), out intParser) ? intParser : 0,
                intIDMasEmployeeSS       = int.TryParse(querystring.Get("intIDMasEmployeeSS"), out intParser) ? intParser : 0,
                intIDMasEmployeeCA       = int.TryParse(querystring.Get("intIDMasEmployeeCA"), out intParser) ? intParser : 0,
                intIDMasEmployeeAC       = int.TryParse(querystring.Get("intIDMasEmployeeAC"), out intParser) ? intParser : 0,
                intIDMasEmployeeAC2      = int.TryParse(querystring.Get("intIDMasEmployeeAC2"), out intParser) ? intParser : 0,
                intIDMasEmployeeAC3      = int.TryParse(querystring.Get("intIDMasEmployeeAC3"), out intParser) ? intParser : 0,
                Remarks        = querystring.Get("Remarks"),
                intIDSecUser   = int.Parse(userProfile.UserId.ToString()),
                LiaisonAmount  = decimal.Parse(querystring.Get("LiaisonAmount")),
                LtoStaffAmount = decimal.Parse(querystring.Get("LtoStaffAmount")),
                SSAmount       = decimal.Parse(querystring.Get("SSAmount")),
                CashierAmount  = decimal.Parse(querystring.Get("CashierAmount")),
                WithholdingTax = decimal.Parse(querystring.Get("WithholdingTax")),
                datIncentive   = querystring.Get("IncentiveDate")
            };

            string isInsert = querystring.Get("TransType");
            string param    = WebCommon.ToXML(cvList);

            return(LtoIncentiveDal.manage(param, mst));
        }
        public static List <LtoIncentive_tblLtoIncentive> getIncentive(NameValueCollection querystring)
        {
            string strCriteria = querystring.Get("strCriteria");

            return(LtoIncentiveDal.getIncentive(strCriteria));
        }
 public static List <LtoIncentive_ComboLiasonName> getComboLiaisonName(NameValueCollection querystring)
 {
     return(LtoIncentiveDal.getComboLiaisonName());
 }
 public static List <LTOCompany> GetCompany(NameValueCollection querystring)
 {
     return(LtoIncentiveDal.GetCompany());
 }
        public static List <LtoIncentive_EntryDetail> getEntryDetailSKYGO(NameValueCollection querystring)
        {
            string SeriesNo = querystring.Get("SeriesNo");

            return(LtoIncentiveDal.getEntryDetailSKYGO(SeriesNo));
        }