示例#1
0
        public LicenseAppTable GetVendordetailByVendorName(string NameOfApplicant)
        {
            LicenseAppTable Dt = new LicenseAppTable();

            try
            {
                Dt = IgrssAdapters.LAppTableAdapter.GetVendorDetailsByVendorName(NameOfApplicant);
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                {
                    throw;
                }
            }
            return(Dt);
        }
示例#2
0
        public LicenseAppTable GetData()
        {
            LicenseAppTable Dt = new LicenseAppTable();

            try
            {
                Dt = IgrssAdapters.LAppTableAdapter.GetAllLicenseDetails();
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                {
                    throw;
                }
            }
            return(Dt);
        }
示例#3
0
        //public bool UpdateVendrDtlByAppNo(string NameOfApplicant, string PresentAddress, string PermanentAddress, DateTime DateOfBirth, string Qualification, decimal Experience, string Caste, string BusinessAddress, decimal TotalInvestmentAmount, object NameAndAddressOfReferer, string Remarks, string HomePhone, string ApplnNumber)
        //{
        //    IgrssAdapters.LAppTableAdapter.UpdateVendorDetlByAppNo(NameOfApplicant, PresentAddress, PermanentAddress, DateOfBirth, Qualification, Experience, Caste, BusinessAddress, TotalInvestmentAmount, NameAndAddressOfReferer, Remarks, HomePhone, ApplnNumber);
        //    return true;
        //}

        public LicenseAppTable GetVendordtlByLicenseNo(string LicenseNo)
        {
            LicenseAppTable Dt = new LicenseAppTable();

            try
            {
                Dt = IgrssAdapters.LAppTableAdapter.GetVendorDetailsByLicenseNo(LicenseNo);
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                {
                    throw;
                }
            }
            return(Dt);
        }
示例#4
0
        public LicenseAppTable GetlicenseAppBylicenseAppID(Guid LicenseApplicationId)
        {
            LicenseAppTable Dt       = new LicenseAppTable();
            string          UserName = Thread.CurrentPrincipal.Identity.Name;

            try
            {
                Dt = IgrssAdapters.LAppTableAdapter.GetLiceseApplnById(LicenseApplicationId);
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                {
                    throw;
                }
            }
            return(Dt);
        }
示例#5
0
        public LicenseAppTable GetvendordetailByAppNumber(string ApplnNumber)
        {
            LicenseAppTable Dt = new LicenseAppTable();

            try
            {
                if (ApplnNumber != "")
                {
                    return(IgrssAdapters.LAppTableAdapter.GetVendorDetailByAppNumber(ApplnNumber));
                }
                else
                {
                    Dt = IgrssAdapters.LAppTableAdapter.GetAllLicenseDetails();
                }
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                {
                    throw;
                }
            }
            return(Dt);
        }
        public void NewLicenseApplicationTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            FormViewParameter Parameter = new FormViewParameter();
            IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable dt = new  IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable();
            DataRow dr = dt.NewRow();
            dr["LicenseApplicationId"] = new Guid();
            dr["NameOfApplicant"] = "MADHUSMINA";
            dr["PresentAddress"] = "NAYA MUNDA WARD JAGDALPUR BASTAR";
            dr["PermanentAddress"] = "NAYA MUNDA WARD JAGDALPUR BASTAR";
            dr["DateOfBirth"] = DateTime.Now;
            dr["Qualification"] = "BSC";
            dr["Experience"] =5;
            dr["Caste"] = "obc";
            dr["BusinessAddress"] ="NAYA MUNDA WARD JAGDALPUR BASTAR";
            dr["TotalInvestmentAmount"] = 500;
            dr["NameAndAddressOfReferer"] = "NAYA MUNDA WARD JAGDALPUR BASTAR";
            dr["SubmissionOfficeId"] = new Guid("916fd082-061a-45fb-91a4-33967243b4cf");
            dr["ApplnNumber"] = "500";
            dr["HomePhone"] = 9886439408;
            dr["Remarks"] = "hai how r u";
            dt.Rows.Add(dr);
            Parameter.Values = dt.Rows[0];

            bool expected = true;
            Assert.AreEqual(expected,target.NewLicenseApplication(Parameter), "IGRSS.BusinessLogicLayer.LicenseApplication.NewLicenseApplication did not return " +
                    "the expected value.");
        }
示例#7
0
 //public DataTable  GetLicenseAuthrorised()
 //{
 //    DataTable Dt = new DataTable();
 //    try
 //    {
 //        Dt = IgrssAdapters.LAothroisedAdapter.GgetLicenseAuthodetails();
 //    }
 //    catch (Exception ex)
 //    {
 //        if (ExceptionPolicy.HandleException(ex, "DAL"))
 //            throw;
 //    }
 //    return Dt;
 //}
 public LicenseAppTable GetVendorSalesDetails()
 {
     LicenseAppTable Dt = new LicenseAppTable();
     try
     {
         Dt = IgrssAdapters.LAppTableAdapter.GetVendorSalesDetails();
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "DAL"))
             throw;
     }
     return Dt;
 }
示例#8
0
 //public bool UpdateVendrDtlByAppNo(string NameOfApplicant, string PresentAddress, string PermanentAddress, DateTime DateOfBirth, string Qualification, decimal Experience, string Caste, string BusinessAddress, decimal TotalInvestmentAmount, object NameAndAddressOfReferer, string Remarks, string HomePhone, string ApplnNumber)
 //{
 //    IgrssAdapters.LAppTableAdapter.UpdateVendorDetlByAppNo(NameOfApplicant, PresentAddress, PermanentAddress, DateOfBirth, Qualification, Experience, Caste, BusinessAddress, TotalInvestmentAmount, NameAndAddressOfReferer, Remarks, HomePhone, ApplnNumber);
 //    return true;
 //}
 public LicenseAppTable GetVendordtlByLicenseNo(string LicenseNo)
 {
     LicenseAppTable Dt = new LicenseAppTable();
     try
     {
         Dt = IgrssAdapters.LAppTableAdapter.GetVendorDetailsByLicenseNo(LicenseNo);
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "DAL"))
             throw;
     }
     return Dt;
 }
示例#9
0
 public LicenseAppTable GetVendordetailByVendorName(string NameOfApplicant)
 {
     LicenseAppTable Dt = new LicenseAppTable();
     try
     {
         Dt = IgrssAdapters.LAppTableAdapter.GetVendorDetailsByVendorName(NameOfApplicant);
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "DAL"))
             throw;
     }
     return Dt;
 }
示例#10
0
        public LicenseAppTable GetvendordetailByAppNumber(string ApplnNumber)
        {
            LicenseAppTable Dt = new LicenseAppTable();
            try
            {
                if (ApplnNumber != "")
                {
                    return IgrssAdapters.LAppTableAdapter.GetVendorDetailByAppNumber(ApplnNumber);
                }
                else
                {

                    Dt = IgrssAdapters.LAppTableAdapter.GetAllLicenseDetails();
                }
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                    throw;
            }
            return Dt;
        }
示例#11
0
 public LicenseAppTable GetlicenseAppBylicenseAppID(Guid LicenseApplicationId)
 {
     LicenseAppTable Dt = new LicenseAppTable();
     string UserName = Thread.CurrentPrincipal.Identity.Name;
     try
     {
         Dt = IgrssAdapters.LAppTableAdapter.GetLiceseApplnById(LicenseApplicationId);
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "DAL"))
             throw;
     }
     return Dt;
 }