protected void login_ServerClick(object sender, EventArgs e) { //var username = txtUserName.Text; //var pass = txtPassword.Text; BAL_Common bAL_Common = new BAL_Common(); //if (bAL_Common.ValidateUserLogin(username,pass)) //{ //} }
public DropDownState GetStateIDByGSTIN(string gstin) { DropDownState dropDownState = new DropDownState(); BAL_Common bAL_Common = new BAL_Common(); State state = new State(); state = bAL_Common.GetStateByGSTIN(gstin); if (state != null) { dropDownState.text = state.Name; dropDownState.Value = state.ID; } return(dropDownState); }
public List <DropDownState> GetListOfStates() { BAL_Common bAL_Common = new BAL_Common(); List <State> stateList = new List <State>(); stateList = bAL_Common.GetStateListForDropDown(); List <DropDownState> dropDownStateList = new List <DropDownState>(); foreach (State state in stateList) { DropDownState dropDownState = new DropDownState(); dropDownState.text = state.Name; dropDownState.Value = state.ID; dropDownStateList.Add(dropDownState); } return(dropDownStateList); }
public List <DropDownCity> GetListOfCitiesByStates(string valueSelected) { List <DropDownCity> listDropDownCisty = new List <DropDownCity>(); BAL_Common bAL_Common = new BAL_Common(); List <City> cityList = new List <City>(); cityList = bAL_Common.GetCityByStateIDForDropDown(valueSelected); foreach (City city in cityList) { DropDownCity dropDownCity = new DropDownCity(); dropDownCity.StateID = city.StateID; dropDownCity.text = city.Name; dropDownCity.Value = city.ID; listDropDownCisty.Add(dropDownCity); } return(listDropDownCisty); }
private bool ValidateCreds(string username, string passWord, out UserMaster userMaster, out string role) { userMaster = new UserMaster(); BAL_Common bAL_Common = new BAL_Common(); userMaster = bAL_Common.GetUserdetailsByUsernamePass(username, bAL_Common.Encrypt(passWord)); if (userMaster == null) { role = ""; return(false); } else { //GSTSevaAdmin@2018 //abc@123 role = bAL_Common.GetUserRole(userMaster.ID); return(true); } }
public void GenerateReport(Customer Customer, Customer Client, List <ProductsMaster> productList, List <BillProductMapping> productBillMapping, string notesForCustomer, string termsAndCondition) { BAL_Common bAL_Common = new BAL_Common(); PDFGenerator pDFGenerator = new PDFGenerator(); Document document = new Document(PageSize.A4, 88f, 88f, 10f, 10f); Font NormalFont = FontFactory.GetFont("Arial", 12, Font.NORMAL, Color.BLACK); document.AddTitle("Invoice"); document.AddSubject("This is Invoice against your Items "); document.AddKeywords("GSTSeva"); document.AddCreator("GSTSeva"); document.AddAuthor("GSTSeva"); using (System.IO.MemoryStream memoryStream = new System.IO.MemoryStream()) { PdfWriter writer = PdfWriter.GetInstance(document, memoryStream); Phrase phrase = null; PdfPCell cell = null; PdfPTable table = null; Color color = null; } }