本文整理汇总了C#中Js.BLL.BaseDal.DeleteDetail方法的典型用法代码示例。如果您正苦于以下问题:C# BaseDal.DeleteDetail方法的具体用法?C# BaseDal.DeleteDetail怎么用?C# BaseDal.DeleteDetail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Js.BLL.BaseDal
的用法示例。
在下文中一共展示了BaseDal.DeleteDetail方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnDeletet_Click
protected void btnDeletet_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
Js.BLL.Sys.SysComDal sdal = new Js.BLL.Sys.SysComDal(cnKey);
// Js.BLL.Sys.SysComDal sdal = new Js.BLL.Sys.SysComDal();
int iReturn = 0;
for (int i = 0; i < this.GridView1.Rows.Count; i++)
{
CheckBox cb = (CheckBox)(this.GridView1.Rows[i].FindControl("cbSelect"));
if (cb.Checked)
{
HyperLink hk = (HyperLink)(this.GridView1.Rows[i].FindControl("HyperLink1"));
iReturn = sdal.GetBillCanBeEdit(FormID, hk.Text);// "EnterpriseID='" + Session["EnterpriseID"].ToString() + "'");
if (iReturn == 1)
JScript.Instance.ShowMessage(this.updatePanel, hk.Text + Resources.Resource.NotDelete_Checked);
else if (iReturn == 2)
JScript.Instance.ShowMessage(this.updatePanel, hk.Text + Resources.Resource.NotDelete_IsUsed);
else
{
dal.Delete(hk.Text);//, "EnterpriseID='" + Session["EnterpriseID"].ToString() + "'");
dal.DeleteDetail(hk.Text);
}
}
}
SetBtnEnabled("");
}
示例2: btnDelete_Click
protected void btnDelete_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
//Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
string strID = this.txtBillID.Text;
dal.Delete(strID);//, "EnterpriseID='" + this.txtEnterpriseID.Text + "'");
dal.DeleteDetail(strID);
btnNext_Click(sender, e);
if (this.txtBillID.Text == strID)
btnPre_Click(sender, e);
if (this.txtBillID.Text == strID)
Response.Redirect("Orders.aspx?FormID=" + Server.UrlEncode(FormID));
}
示例3: btnDeletet_Click
protected void btnDeletet_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
for (int i = 0; i < this.GridView1.Rows.Count; i++)
{
CheckBox cb = (CheckBox)(this.GridView1.Rows[i].FindControl("cbSelect"));
if (cb.Checked)
{
HyperLink hk = (HyperLink)(this.GridView1.Rows[i].FindControl("HyperLink1"));
dal.Delete(hk.Text);
dal.DeleteDetail(hk.Text);
}
}
SetBtnEnabled("");
}