本文整理汇总了C#中Users.QuashScheme方法的典型用法代码示例。如果您正苦于以下问题:C# Users.QuashScheme方法的具体用法?C# Users.QuashScheme怎么用?C# Users.QuashScheme使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Users
的用法示例。
在下文中一共展示了Users.QuashScheme方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: g_ItemCommand
protected void g_ItemCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName == "btnQuash")
{
long siteid = _Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbSiteID")).Value, -1L);
long num2 = _Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbInitiateUserID")).Value, -1L);
long schemeID = _Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbSchemeID")).Value, -1L);
if (((siteid < 0L) || (num2 < 0L)) || (schemeID < 0L))
{
PF.GoError(1, "参数错误", "Admin_SchemeQuash");
}
else
{
Users users = new Users(siteid)[siteid, num2];
if (users == null)
{
PF.GoError(4, "数据库繁忙,请重试", "Admin_SchemeQuash");
}
else
{
string returnDescription = "";
if (users.QuashScheme(schemeID, true, ref returnDescription) < 0)
{
PF.GoError(1, returnDescription, "Admin_SchemeQuash");
}
else
{
new Tables.T_UserDetails { Memo = { Value = "投注通讯故障撤单" } }.Update("SchemeID = " + schemeID.ToString() + " and OperatorType = 9");
this.BindData();
}
}
}
}
}
示例2: g_ItemCommand
protected void g_ItemCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName == "btnQuash")
{
long siteid = _Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbSiteID")).Value, -1L);
long num2 = _Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbInitiateUserID")).Value, -1L);
long schemeID = _Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbSchemeID")).Value, -1L);
if (((siteid < 0L) || (num2 < 0L)) || (schemeID < 0L))
{
PF.GoError(1, "参数错误", this.Page.GetType().BaseType.FullName);
}
else
{
Users users = new Users(siteid)[siteid, num2];
if (users == null)
{
PF.GoError(4, "数据库繁忙,请重试", this.Page.GetType().BaseType.FullName);
}
else
{
string returnDescription = "";
if (users.QuashScheme(schemeID, true, ref returnDescription) < 0)
{
PF.GoError(1, returnDescription, this.Page.GetType().BaseType.FullName);
}
else
{
this.BindData();
}
}
}
}
else if (e.CommandName == "btnPrintOut")
{
int returnValue = -1;
string str2 = "";
if (Procedures.P_SchemePrintOut(_Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbSiteID")).Value, -1L), _Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbSchemeID")).Value, -1L), base._User.ID, short.Parse(this.ddlElectronTicket.SelectedValue), "请电询", true, ref returnValue, ref str2) < 0)
{
PF.GoError(4, "数据库繁忙,请重试", this.Page.GetType().BaseType.FullName);
}
else if (returnValue < 0)
{
PF.GoError(1, str2, this.Page.GetType().BaseType.FullName);
}
else
{
this.BindData();
}
}
}
示例3: g_ItemCommand
protected void g_ItemCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e)
{
if (e.CommandName == "btnQuash")
{
long SiteID = Shove._Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbSiteID")).Value, -1);
long InitiateUserID = Shove._Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbInitiateUserID")).Value, -1);
long SchemeID = Shove._Convert.StrToLong(((HtmlInputHidden)e.Item.FindControl("tbSchemeID")).Value, -1);
if ((SiteID < 0) || (InitiateUserID < 0) || (SchemeID < 0))
{
PF.GoError(ErrorNumber.Unknow, "参数错误", "Admin_SchemeQuash");
return;
}
Users tu = new Users(SiteID)[SiteID, InitiateUserID];
if (tu == null)
{
PF.GoError(ErrorNumber.DataReadWrite, "数据库繁忙,请重试", "Admin_SchemeQuash");
return;
}
string ReturnDescription = "";
if (tu.QuashScheme(SchemeID, true, ref ReturnDescription) < 0)
{
PF.GoError(ErrorNumber.Unknow, ReturnDescription, "Admin_SchemeQuash");
return;
}
DAL.Tables.T_UserDetails t = new DAL.Tables.T_UserDetails();
t.Memo.Value = "投注通讯故障撤单";
t.Update("SchemeID = " + SchemeID.ToString() + " and OperatorType = 9");
BindData();
return;
}
}