public static List <getCollectionIncentiveGetBalItems> GetCollectionIncentiveBalData(NameValueCollection querystring)
        {
            string datAsOfFrom = querystring.Get("datAsOf");
            string strAction   = querystring.Get("strAction");
            string BranchID    = querystring.Get("BranchID");

            return(CollectionIncentiveDAL.SearchGetBagCollectionIncentiveData(datAsOfFrom, BranchID));
        }
        public static string SaveCollectionIncentiveBalData(NameValueCollection querystring, NameValueCollection formdata)
        {
            var    CollectionIncentiveDetails = new List <SaveCollectionIncentiveGetBalItems>();
            string datAsOfFrom = querystring.Get("datAsOf");
            string branchID    = querystring.Get("BranchID");

            if (formdata["CollectionIncentiveDatas"] != "error")
            {
                CollectionIncentiveDetails = (List <SaveCollectionIncentiveGetBalItems>)CollectionIncentiveDetails.ToClass(formdata["CollectionIncentiveDatas"]);
            }

            string param = WebCommon.ToXML(CollectionIncentiveDetails);

            return(CollectionIncentiveDAL.SaveCollectionIncentive(datAsOfFrom, branchID, param));
        }