示例#1
0
        // Done
        public bool UpdateScholarshipDiscount(ref ScholarshipDiscount scholarshipDiscount, ref string message)
        {
            ScholarshipDiscountBDO sdBDO = new ScholarshipDiscountBDO();

            TranslateScholarshipDiscountToScholarshipDiscountBDO(scholarshipDiscount, sdBDO);
            return(sLogic.UpdateScholarshipDiscount(ref sdBDO, ref message));
        }
示例#2
0
        public bool AddScholarshipDiscount(ref ScholarshipDiscount scholarshipDiscount, string scholarshipCode, ref string message)
        {
            ScholarshipDiscountBDO sdbdo = new ScholarshipDiscountBDO();

            TranslateScholarshipDiscountToScholarshipDiscountBDO(scholarshipDiscount, sdbdo);
            return(sLogic.AddScholarshipDiscount(sdbdo, scholarshipCode, ref message));
        }
示例#3
0
 private void TranslateScholarshipDiscountToScholarshipDiscountBDO(ScholarshipDiscount sc, ScholarshipDiscountBDO sbdo)
 {
     sbdo.Deactivated        = sc.Deactivated;
     sbdo.Discount           = sc.Discount;
     sbdo.FeeCode            = sc.FeeCode;
     sbdo.ScholarshipCode    = sc.ScholarshipCode;
     sbdo.ScholarshipFeeCode = sc.ScholarshipFeeCode;
 }
示例#4
0
 // Done
 public List<ScholarshipDiscount> GetAllScholarshipDiscount(string scholarshipCode)
 {
     List<ScholarshipDiscount> sDiscount = new List<ScholarshipDiscount>();
     foreach (ScholarshipDiscountBDO sdbdo in sLogic.GetAllDiscounts(scholarshipCode))
     {
         ScholarshipDiscount sc = new ScholarshipDiscount();
         TranslateScholarshipDiscountToScholarshipDiscountBDO(sc, sdbdo);
         sDiscount.Add(sc);
     }
     return sDiscount;
 }
示例#5
0
 // Done
 public List<ScholarshipDiscount> GetAllScholarships()
 {
     List<ScholarshipDiscount> slist = new List<ScholarshipDiscount>();
     foreach (ScholarshipDiscountBDO sbdo in sLogic.GetAllScholarships())
     {
         ScholarshipDiscount s = new ScholarshipDiscount();
         TranslateScholarshipBDOToScholarship(sbdo, s);
         slist.Add(s);
     }
     return slist;
 }
示例#6
0
        // Done
        public List <ScholarshipDiscount> GetAllScholarshipDiscount(string scholarshipCode)
        {
            List <ScholarshipDiscount> sDiscount = new List <ScholarshipDiscount>();

            foreach (ScholarshipDiscountBDO sdbdo in sLogic.GetAllDiscounts(scholarshipCode))
            {
                ScholarshipDiscount sc = new ScholarshipDiscount();
                TranslateScholarshipDiscountToScholarshipDiscountBDO(sc, sdbdo);
                sDiscount.Add(sc);
            }
            return(sDiscount);
        }
示例#7
0
 public void TranslateScholarshipToScholarshipBDO(ScholarshipDiscount s, ScholarshipDiscountBDO sBDO)
 {
     //sBDO.ScholarshipCode = s.ScholarshipCode;
     //sBDO.Condition = s.Condition;
     sBDO.Deactivated = s.Deactivated;
     sBDO.Description = s.Description;
       //  sBDO.Privilege = s.Privilege;
 }
示例#8
0
 // Done
 public bool UpdateScholarshipDiscount(ref ScholarshipDiscount scholarshipDiscount, ref string message)
 {
     ScholarshipDiscountBDO sdBDO = new ScholarshipDiscountBDO();
     TranslateScholarshipDiscountToScholarshipDiscountBDO(scholarshipDiscount, sdBDO);
     return sLogic.UpdateScholarshipDiscount(ref sdBDO, ref message);
 }
示例#9
0
 public bool AddScholarshipDiscount(ref ScholarshipDiscount scholarshipDiscount, string scholarshipCode, ref string message)
 {
     ScholarshipDiscountBDO sdbdo = new ScholarshipDiscountBDO();
     TranslateScholarshipDiscountToScholarshipDiscountBDO(scholarshipDiscount, sdbdo);
     return sLogic.AddScholarshipDiscount(sdbdo, scholarshipCode, ref message);
 }
示例#10
0
 private void TranslateScholarshipDiscountToScholarshipDiscountBDO(ScholarshipDiscount sc, ScholarshipDiscountBDO sbdo)
 {
     sbdo.Deactivated = sc.Deactivated;
     sbdo.Discount = sc.Discount;
     sbdo.FeeCode = sc.FeeCode;
     sbdo.ScholarshipCode = sc.ScholarshipCode;
     sbdo.ScholarshipFeeCode = sc.ScholarshipFeeCode;
 }
示例#11
0
 public bool CreateScholarship(ref ScholarshipDiscount scholarship, ref string message)
 {
     ScholarshipDiscountBDO sbdo = new ScholarshipDiscountBDO();
     TranslateScholarshipToScholarshipBDO(scholarship, sbdo);
     return sLogic.CreateScholarship(ref sbdo, ref message);
 }
示例#12
0
 private void TranslateScholarshipToScholarshipBDO(ScholarshipDiscount sc, ScholarshipDiscountBDO sbdo)
 {
     sbdo.ScholarshipDiscountId = sc.ScholarshipDiscountId;
     sbdo.Scholarship = sc.Scholarship;
     sbdo.Discount = (float)sc.Discount;
     sbdo.Deactivated = sc.Deactivated;
     sbdo.Description = sc.Description;
 }
示例#13
0
 private void TranslateScholarshipDiscountToScholarshipDiscountBDO(ScholarshipDiscount sc, ScholarshipDiscountBDO sbdo)
 {
     //FeeService fs = new FeeService();
     //Fee f = new Fee();
     //f = fs.GetFee(sc.FeeID);
     sbdo.Deactivated = sc.Deactivated;
     sbdo.Discount = (float)sc.Discount;
      sbdo.ScholarshipDiscountId= sc.ScholarshipDiscountId;
     //sbdo.Fee = f;
 }
示例#14
0
        private void TranslateScholarshipDiscountBDOToScholarshipDiscount(ScholarshipDiscountBDO sc, ScholarshipDiscount sbdo)
        {
            sbdo.Deactivated = sc.Deactivated;
            sbdo.Discount = sc.Discount;

            sbdo.ScholarshipDiscountId = sc.ScholarshipDiscountId;
        }
示例#15
0
        public List<ScholarshipDiscount> ToScholarhsipDiscountList(List<ScholarshipDiscountBDO> sdbdo)
        {
            List<ScholarshipDiscount> scholarshipDiscounts = new List<ScholarshipDiscount>();
            foreach (ScholarshipDiscountBDO SD in sdbdo)
            {
                ScholarshipDiscount s = new ScholarshipDiscount();
                TranslateScholarshipDiscountBDOToScholarshipDiscount(SD, s);
                scholarshipDiscounts.Add(s);
            }

            return scholarshipDiscounts;
        }