Exemplo n.º 1
0
        protected void checkcf()
        {
            int chk = bus.checkcf();

            if (chk == 1)
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "displayalertmessage", "cfnot();", true);
            }
            else
            {
            }
        }
Exemplo n.º 2
0
        protected void lnkcf_Click(object sender, EventArgs e)
        {
            int r = bus.checkcf();

            if (r == 1) // apply carry forward
            {
                int re = bus.cf();
                {
                    if (re == 1)
                    {
                        ScriptManager.RegisterStartupScript(this, GetType(), "displayalertmessage", "success();", true);
                    }
                    else
                    {
                    }
                }
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "displayalertmessage", "error();", true);
            }
        }