示例#1
0
    protected void lnkDeleteBranch_Click(object sender, EventArgs e)
    {
        string sSelBranchID = this.hdnSelectedBranchID.Value;
        int    iSelBranchID = Convert.ToInt32(sSelBranchID);

        ContactBranches ContactBranchManager = new ContactBranches();

        ContactBranchManager.RomoveBranch(iSelBranchID);

        PageCommon.WriteJsEnd(this, "Deleted partner branch successfully.", PageCommon.Js_RefreshSelf);
    }
示例#2
0
    private void RemoveBranch(string[] items)
    {
        int iItem = 0;

        foreach (var item in items)
        {
            if (int.TryParse(item, out iItem))
            {
                try
                {
                    _bContactBranches.RomoveBranch(iItem);
                }
                catch (Exception exception)
                {
                    LPLog.LogMessage(exception.Message);
                }
            }
        }
    }
示例#3
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     _bContactBranches.RomoveBranch(Convert.ToInt32(sContactBranchID));
     PageCommon.WriteJsEnd(this, "Deleted partner branch successfully.", "window.parent.location.href='PartnerBranchList.aspx';");
 }