本文整理汇总了C#中BAL.clsMasters类的典型用法代码示例。如果您正苦于以下问题:C# clsMasters类的具体用法?C# clsMasters怎么用?C# clsMasters使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
clsMasters类属于BAL命名空间,在下文中一共展示了clsMasters类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: checkUser
public void checkUser()
{
if (txtEmailID1.Text != "")
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.UserName;
_objMasters.EmailID = txtEmailID1.Text.Trim();
_objDataSet = (DataSet)_objMasters.fnGetData();
DataTable dt = _objDataSet.Tables[0];
if (dt.Rows.Count > 0)
{
lblMsg1.Text = "User name is not available";
lblMsg1.ForeColor = Color.Red;
lblMsg1.Visible = true;
Checked = "null";
// MpeSignUP.Show();
}
else
{
lblMsg1.ForeColor = Color.Blue;
lblMsg1.Text = "User name is available";
Checked = "available";
}
}
else
{
lblMsg1.Text = "Please Enter Email ID";
lblMsg1.ForeColor = Color.Red;
lblMsg1.Visible = true;
Checked = "null";
}
}
示例2: FlightgetGuestDetails
protected void FlightgetGuestDetails()
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.GetFlights1;
_objMasters.RequestID = Convert.ToString(Session["Order_Id"]);
_objDataSet = new DataSet();
_objDataSet = (DataSet)_objMasters.fnGetData();
if (_objDataSet != null)
{
if (_objDataSet.Tables.Count > 0)
{
if (_objDataSet.Tables[0].Rows.Count > 0)
{
Name = _objDataSet.Tables[0].Rows[0]["Customer_Details"].ToString();
address = _objDataSet.Tables[0].Rows[0]["address"].ToString();
string[] name = Name.ToString().Split('|');
Name = name[0].ToString() + name[1].ToString();
string[] add = address.ToString().Split(',');
State = add[1].ToString();
City = add[0].ToString();
PostalCode = add[3].ToString();
Email = _objDataSet.Tables[0].Rows[0]["emailAddress"].ToString();
Mobilenumber = _objDataSet.Tables[0].Rows[0]["telephone"].ToString();
Country = add[2].ToString();
// address = add[0].ToString();
val = "true";
}
}
}
}
示例3: btnSavePermissions_Click
protected void btnSavePermissions_Click(object sender, EventArgs e)
{
try
{
foreach (GridViewRow row in gvstopservices.Rows)
{
_objmasters = new clsMasters();
Label lblScrnID = (Label)row.FindControl("lblScreenID");
Label lblScrnName = (Label)row.FindControl("lblScreenName");
CheckBox ChkAdd1 = (CheckBox)row.FindControl("ChkAdd");
_objmasters.ScreenInd = Masters.Getservices;
_objmasters.ID = Convert.ToInt32(lblScrnID.Text.Trim());
if (ChkAdd1.Checked == true)
{
_objmasters.Status = "1";
}
else
{
_objmasters.Status = "0";
}
if (_objmasters.fnUpdateRecord() == true)
{
lblmsg.Text = "Selected services Stopped succesfully";
lblmsg.Visible = true;
lblmsg.ForeColor = System.Drawing.Color.Green;
}
}
}
catch (Exception ex)
{
}
}
示例4: D2HRecharge
public void D2HRecharge()
{
lblMobileMsg.Text = ""; lblDataCardmsg.Text = ""; lblD2HMsg.Text = "";
gvD2HRecharge.Visible = true;
gvDataCardRecharge.Visible = false;
gvMobile.Visible = false;
paging.Visible = false;
gvD2HRecharge.DataSource = null;
gvD2HRecharge.DataBind();
lblD2HMsg.Text = string.Empty;
Label4dataCommi.Visible = false;
Label4D2hComm.Visible = true;
Label3DEH.Visible = true;
lblTotalProfit.Visible = false;
lblTotalAmount.Visible = false;
try
{
if (DateTime.Parse(txtDF.Text.Trim().ToString()) > DateTime.Parse(txtDT.Text.Trim().ToString()))
{
lblD2HMsg.Text = "From Date should be less than To Date";
return;
}
else
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.GetAgentOnly;
_objMasters.From = txtDF.Text.Trim().ToString();
_objMasters.To = txtDT.Text.Trim().ToString();
_objMasters.UserID = Convert.ToInt32(Session["UserID"]);
_objMasters.Parameter = "DTH";
_objDataSet = (DataSet)_objMasters.fnGetData();
ViewState["D2HData"] = _objDataSet.Tables[0];
if (_objDataSet.Tables[0].Rows.Count > 0)
{
paging.Visible = true;
gvD2HRecharge.DataSource = _objDataSet.Tables[0];
gvD2HRecharge.DataBind();
}
else
{
Label3DEH.Visible = false;
Label4D2hComm.Visible = false;
paging.Visible = false;
lblD2HMsg.Visible = true;
lblD2HMsg.Text = "No Numbers are Recharged between " + txtDF.Text + " and " + txtDT.Text;
return;
}
}
}
catch
{
}
}
示例5: D2HRecharge
public void D2HRecharge()
{
paging.Visible = false;
// gvD2HRecharge.DataSource = null;
// gvD2HRecharge.DataBind();
lblD2HMsg.Text = string.Empty;
try
{
_objMasters = new clsMasters();
dt = DateTime.Parse(txtDF.Text, CultureInfo.GetCultureInfo("en-gb"));
dt = Convert.ToDateTime(dt.ToShortDateString());
dt1 = DateTime.Parse(txtDT.Text, CultureInfo.GetCultureInfo("en-gb"));
dt1 = Convert.ToDateTime(dt1.ToShortDateString());
if (DateTime.Parse(dt.ToString()) > DateTime.Parse(dt1.ToString()))
{
lblD2HMsg.Text = "From Date should be less than To Date";
gvD2HRecharge.Visible = false;
return;
}
else
{
_objMasters.ScreenInd = Masters.VisitorsReportd2h;
_objMasters.From12 = Convert.ToDateTime(dt.ToString());
_objMasters.To12 = Convert.ToDateTime(dt1.ToString());
// _objMasters.UserID = Convert.ToInt32(Session["RechargeUserID"]);
_objMasters.Parameter = "D2H";
_objDataSet = (DataSet)_objMasters.fnGetData();
ViewState["D2HData"] = _objDataSet.Tables[0];
if (_objDataSet.Tables[0].Rows.Count > 0)
{
paging.Visible = true;
gvD2HRecharge.Visible = true;
gvD2HRecharge.DataSource = _objDataSet.Tables[0];
gvD2HRecharge.DataBind();
}
else
{
paging.Visible = false;
lblD2HMsg.Visible = true;
lblD2HMsg.Text = "No Numbers are Recharged between " + txtDF.Text + " and " + txtDT.Text;
return;
}
}
}
catch
{
}
}
示例6: fnLoadPage1
public void fnLoadPage1()
{
try
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.AgentCommission;
if (Session["Role"].ToString() == "Admin")
{
_objMasters.Type = "AD";
_objMasters.DistributorID = Convert.ToInt32(Session["UserID"].ToString());
}
else if (Session["Role"].ToString() == "DB")
{
_objMasters.Type = "AG";
_objMasters.DistributorID = Convert.ToInt32(Session["UserID"].ToString());
}
_objDataSet = (DataSet)_objMasters.fnGetData();
if (_objDataSet.Tables[0].Rows.Count > 0)
{
gvOperators.DataSource = _objDataSet.Tables[0];
gvOperators.DataBind();
ViewState["OperatorName"] = _objDataSet.Tables[0];
btnUpdate.Visible = false;
btnDelete.Visible = false;
btnCancel.Visible = false;
btnAdd.Visible = true;
}
}
catch (Exception ex)
{
// LogError("Masters_frmOperatorNameaspx.aspx", "fnLoadPage", DateTime.Now, ex.Message.ToString());
// Response.Redirect("../Error.aspx", false);
//Logger.Log(Logger.LogType.Log_In_DB, ex,true);
//Logger.Log(ex, Session["APRUserName"].ToString());
lblmessage.Text = ex.Message;
}
finally
{
_objMasters = null;
if (_objDataSet != null)
{
_objDataSet.Dispose();
}
}
}
示例7: AddAmountoUserswhenRechargefailed
protected void AddAmountoUserswhenRechargefailed()
{
try
{
_objMaster = new clsMasters();
_objMaster.ScreenInd = Masters.AddAmounttoUsersRechargeFailed;
_objMaster.amountewallet = Convert.ToDecimal(Session["RRechargeAmount"].ToString());
_objMaster.UserID = Convert.ToInt32(Session["UserID"].ToString());
_objMaster.fnUpdateRecord();
}
catch (Exception ex)
{
// LogError("redirect.aspx", "AddAmountoUserswhenRechargefailed", DateTime.Now, ex.Message.ToString());
}
}
示例8: fnLoadPage
private void fnLoadPage()
{
try
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.getoperators;
_objDataSet = (DataSet)_objMasters.fnGetData();
if (_objDataSet != null)
{
if (_objDataSet.Tables.Count > 0)
{
if (_objDataSet.Tables[0].Rows.Count > 0)
{
ddlProvider.DataSource = _objDataSet.Tables[0];
ddlProvider.DataValueField = "OperatorsID";
ddlProvider.DataTextField = "OperatorsName";
ddlProvider.DataBind();
ddlProvider.Items.Insert(0, "Please Select");
}
else
{
lblmsg.Text = "No data found";
}
}
else
{
lblmsg.Text = "No data found";
}
}
else
{
lblmsg.Text = "No data found";
}
}
catch (Exception ex)
{
}
finally
{
_objMasters = null;
if (_objDataSet != null)
{
_objDataSet.Dispose();
}
}
}
示例9: btnRegister_Click
protected void btnRegister_Click(object sender, EventArgs e)
{
try
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.GetTarrif;
_objMasters.OperatorsID = Convert.ToInt32(ddlProvider.SelectedValue);
_objDataSet = (DataSet)_objMasters.fnGetData();
if (_objDataSet != null)
{
if (_objDataSet.Tables.Count > 0)
{
if (_objDataSet.Tables[0].Rows.Count > 0)
{
lblmsg.Text = "";
gvMobile.DataSource = _objDataSet.Tables[0];
gvMobile.DataBind();
gvMobile.Visible = true;
}
else
{
lblmsg.Text = "No data found";
lblmsg.Visible = true;
lblmsg.ForeColor = Color.Red;
gvMobile.Visible = false;
}
}
else
{
lblmsg.Text = "No data found";
gvMobile.Visible = false;
}
}
else
{
gvMobile.Visible = false;
lblmsg.Text = "No data found";
}
}
catch (Exception ex)
{
}
}
示例10: checkUser
public void checkUser()
{
try
{
if (txtEmailID1.Text != "")
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.UserName;
_objMasters.EmailID = txtEmailID1.Text.Trim();
_objDataSet = (DataSet)_objMasters.fnGetData();
DataTable dt = _objDataSet.Tables[0];
if (dt.Rows.Count > 0)
{
lblMsg1.Text = "User name is not available";
lblMsg1.ForeColor = Color.Red;
lblMsg1.Visible = true;
Checked = "null";
// MpeSignUP.Show();
}
else
{
lblMsg1.ForeColor = Color.Blue;
lblMsg1.Text = "User name is available";
Checked = "available";
}
}
else
{
lblMsg1.Text = "Please Enter Email ID";
lblMsg1.ForeColor = Color.Red;
lblMsg1.Visible = true;
Checked = "null";
}
}
catch (Exception ex)
{
LogError("Default.aspx", "CheckUser", DateTime.Now, ex.Message.ToString());
Response.Redirect("Error.aspx", false);
}
}
示例11: fnLoadPage1
public void fnLoadPage1()
{
try
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.ListOfAmounts;
_objDataSet = (DataSet)_objMasters.fnGetData();
if (_objDataSet != null)
{
if (_objDataSet.Tables[0].Rows.Count > 0)
{
gvOperators.DataSource = _objDataSet.Tables[0];
gvOperators.DataBind();
ViewState["OperatorName"] = _objDataSet.Tables[0];
btnUpdate.Visible = false;
btnDelete.Visible = false;
btnCancel.Visible = false;
btnAdd.Visible = true;
}
}
}
catch (Exception ex)
{
// LogError("Masters_frmOperatorNameaspx.aspx", "fnLoadPage", DateTime.Now, ex.Message.ToString());
Response.Redirect("../Error.aspx", false);
//Logger.Log(Logger.LogType.Log_In_DB, ex,true);
//Logger.Log(ex, Session["APRUserName"].ToString());
}
finally
{
_objMasters = null;
if (_objDataSet != null)
{
_objDataSet.Dispose();
}
}
}
示例12: checkAgent
public void checkAgent()
{
try
{
if (txtEmailIDAgent.Text != "")
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.AgentName;
_objMasters.EmailID = txtEmailIDAgent.Text.Trim();
_objDataSet = (DataSet)_objMasters.fnGetData();
DataTable dt = _objDataSet.Tables[0];
if (dt.Rows.Count > 0)
{
lblmsg.Text = "EmailId is already exists";
lblmsg.ForeColor = Color.Red;
lblmsg.Visible = true;
Checked = "null";
}
else
{
lblmsg.ForeColor = Color.Green;
lblmsg.Text = "EmailId is Available";
lblmsg.Visible = true;
Checked = "Available";
}
}
else
{
lblmsg.Text = "Please Enter Email ID";
lblmsg.ForeColor = Color.Red;
lblmsg.Visible = true;
Checked = "null";
}
}
catch (Exception ex)
{
LogError("AgentLogin", "checkUser", DateTime.Now, ex.Message.ToString());
Response.Redirect("Error.aspx", false);
}
}
示例13: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.gettopcontent;
//_objMasters.Content = "Hi";
_objDataSet = (DataSet)_objMasters.fnGetData();
if (_objDataSet != null)
{
if (_objDataSet.Tables[0].Rows.Count > 0)
{
if (_objDataSet.Tables[0].Rows[0]["Content"].ToString() != "")
{
lblContent.Text = _objDataSet.Tables[0].Rows[0]["Content"].ToString();
}
else
{
lblContent.Text = "There is no information";
}
}
}
}
}
示例14: btnAdd_Click
protected void btnAdd_Click(object sender, EventArgs e)
{
try
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.InsertTarrif;
// _objDataSet = (DataSet)_objMasters.fnGetData();
_objMasters.OperatorsID =Convert.ToInt32(ddlProvider.SelectedValue);
_objMasters.Denomination =Convert.ToInt32( txtDenomination.Text);
_objMasters.TalkTime = Convert.ToDecimal(txtTalkTime.Text);
_objMasters.Validity = txtValidity.Text;
_objMasters.Description = txtDescription.Text;
if (_objMasters.fnInsertRecord() == true)
{
lblmessage.ForeColor = Color.Green;
lblmessage.Text = "Record saved successfully.";
ddlProvider_SelectedIndexChanged(sender, e);
ddlProvider.SelectedIndex = 0;
txtDenomination.Text = string.Empty;
txtTalkTime.Text = string.Empty;
txtValidity.Text = string.Empty;
txtDescription.Text = string.Empty;
}
else
{
lblmessage.Text = "Insertion Failed";
}
}
catch(Exception ex)
{
throw ex;
}
}
示例15: MobileRecharge
public Boolean MobileRecharge(String CouponNumber, String MobileNumber, Int16 RechargeAmount, String Order_Id, String IPAddr)
{
Boolean isRechargeSuccess = false;
string Provider = String.Empty, balance = String.Empty, Email = String.Empty, requestId = String.Empty;
_objMaster = new clsMasters();
_objMaster.ScreenInd = Masters.getrecharge;
_objMaster.Parameter = "RequestID";
// _objMaster.RequestID = Session["Order_Id"].ToString();
_objMaster.RequestID = Order_Id.ToString();
_objDataSet = new DataSet();
_objDataSet = (DataSet)_objMaster.fnGetData();
if (_objDataSet != null)
{
if (_objDataSet.Tables[0].Rows.Count > 0)
{
MobileNumber = _objDataSet.Tables[0].Rows[0]["MobileNo"].ToString();
Provider = _objDataSet.Tables[0].Rows[0]["Provider_Name"].ToString();
balance = _objDataSet.Tables[0].Rows[0]["Amount"].ToString();
Email = _objDataSet.Tables[0].Rows[0]["E_Mail"].ToString();
# region Mobile code
// requestId = "KAA" + GenerateRandomNumber(11);
// string URL = "http://www.bulksel.com/api_reach_bulksel.php?user=kass9378&pass=bus80111&mobileno=918008419101&newid=" + requestId + "&message=BS " +
//Provider + " " + MobileNumber + " " + balance;
// HttpWebRequest oReq = null;
// HttpWebResponse oRes = null;
// StreamReader oStream = null;
// oReq = (HttpWebRequest)WebRequest.Create(URL);
// oReq.Method = "GET";
// oReq.Timeout = 10000;
// oRes = (HttpWebResponse)oReq.GetResponse();
// oStream = new StreamReader(oRes.GetResponseStream(), Encoding.GetEncoding(1252));
// string strMessage = oStream.ReadToEnd().ToString();
// Session["strMessage"] = strMessage.ToString();
// string[] s = strMessage.Split('d');
// if (s[0].ToString() == "Request Accepte")
// {
// #region Insert Data into Database
// _objMaster = new clsMasters();
// _objMaster.ScreenInd = Masters.getGuestrecharge1;
// _objMaster.Parameter = "update";
// _objMaster.RequestID = Session["Order_Id"].ToString();
// _objMaster.TransactionID = Convert.ToString(s[1].ToString());
// Session["TransactionID"] = Convert.ToString(s[1].ToString());
// _objMaster.IP = IPAddr;
// if (_objMaster.fnUpdateRecord() == true)
// {
// isRechargeSuccess = true;
// //lblMessage.Text = "Recharge has Been Success";
// try
// {
// string body = "<html xmlns='http://www.w3.org/1999/xhtml'><head><title></title></head><body>" +
// "<table width='700' border='0' cellspacing='0' cellpadding='0' style='font-family: Verdana;font-size: smaller; margin-left: 1px; margin-right: 1px; padding-bottom: 10px;'><tr>" +
// "<td valign='top' width='100%'>" +
// "<table width='100%'><tr><td valign='top'" +
// " <img src='http://rechargeraja.com/images/ban.jpg' /></td> </tr></table> </td></tr>" + " <tr><td align='left' valign='top' style='height: 0px; background-color: #860f2b;'></td></tr>" +
// "<tr><td align='left' valign='top' style='padding-left: 10px;'>Dear User, </td></tr>" +
// "<tr><td align='left' valign='top' style='padding-left: 10px;'>Your TransactionID .<span style='font-weight: 600;'>" + Session["TransactionID"] + " </span></td></tr>" +
// "<tr><td><table><tr><td align='right' valign='top' style='padding-right: 100px; background-color: #F1F1F1'><span style='color: #860f2b; font-weight: 600;'> Mobile Number:</span>" + MobileNumber + "</td>" +
// "<td align='right' valign='top' style='padding-right: 100px; background-color: #F1F1F1'><span style='color: #860f2b; font-weight: 600;'>Amount:</span>" + balance + "</td></tr></table></td></tr>" +
// "<tr><td align='left' width='100%' valign='top'><table><tr><td align='center' width='100%' valign='top' style='background-color: #860f2b; color: White;' colspan='2'><b>Contact Us</b></td></tr>" +
// "<tr><td align='left' valign='top' style='background-color: #EFEFEF;'><table><tr><td align='right' valign='top'><span style='color: #860f2b;'>Support</span> </td> " + "<td align='left' valign='top'> Visit our Knowledge Base / FAQs for quick answers Log a query or problem at My Helpdesk </td></tr> " +
// "<tr><td align='right' valign='top'></td>"</tr></table></td>" +
// "<td align='left' valign='top' style='background-color: #EFEFEF;'><table><tr><td align='left' valign='top'> <span style='color: #860f2b;'>Sales Support</span></td> " +
// "<td align='left' valign='top'> <p> </p> Hyderabad - 90</td></tr>" +
// "<tr><td align='left' valign='top' style='padding-left: 20px;'></td></tr>" +
// "<tr><td align='left' valign='top' style='padding-left: 20px; background-color: #860f2b color: White;'></td></tr>" +
// "</table></body></html>" +
// "<br />Again, we thank you for registering with <b>www.rechargeraja.com</b> and please " +
// "do not hesitate to write to us at <a href='mailto:[email protected]'>Mail</a>" + "if you have any questions.<br /><br />Best Regards,<br /><a href='http://www.rechargeraja.com'>rechargeraja.com</a> " + "<br /><br />";
// MailSender.SendEmail(Email, "[email protected]", "[email protected]", "rechargeraja-Recharge", body);
// }
// catch (Exception ex)
// {
// isRechargeSuccess = false;
// //throw ex;
// }
// try
// {
// string strUrl = "http://sms.i2space.in/WebServiceSMS.aspx?User=i2space1&passwd=smsc&mobilenumber=" + MobileNumber +
// "&message= Thank You for usingrechargeraja.com to Recharge Mobile no" + MobileNumber + " for Rs" + " " + balance + "& your order Num is" + "" + Session["TransactionID"] + "" + "for Queries ,Email us at [email protected]" +
// "&sid=rechargeraja&mtype=N";
// HttpWebRequest oReq1 = null;
// HttpWebResponse oRes1 = null;
// StreamReader oStream1 = null;
//.........这里部分代码省略.........