예제 #1
0
        protected void btnCopyStructure_OnClick(object sender, EventArgs e)
        {
            int structureId = 0;

            if (!string.IsNullOrEmpty(hdnStructure.Value))
            {
                structureId = commisionReceivableBo.CreateStructureFromExisting(Convert.ToInt32(hdnStructure.Value.ToString()), Convert.ToDateTime(txtValidityFrom.Text), Convert.ToDateTime(txtValidityTo.Text), userVo.UserId);
            }
            if (structureId > 0)
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Pageloadscript", "alert('Create Structure successfully');", true);
            }
        }