Example #1
0
    protected void btnSaveAll_Click(object sender, EventArgs e)
    {
        CobBacInfo.Save();
        string BaNo = Session["ArmyNo"] as string;

        if (BaNo != null)
        {
            comMsn.SaveMNS();
            dipState.SaveDiscipState();
            mdcl.Save();
            AprInfr.Save();
            SpecialQualification.SaveSpecialQualification();
            cors.InsertUpdateCourse();
            cdre.InsertUpdateCadre();
            service.InsertUpdateComService();
            nok1.InsertUpdateNOK();
            rmk.InsertUpdateRemrk();
            MessageController.Show("Saved successfully.", MessageType.Information, Page);
            TabContainer1.ActiveTabIndex = 0;
            CobBacInfo.Clear();
            ClearAllGrid();
            Session["ArmyNo"] = null;
            tbxRnk.Text       = "";
            tbxName.Text      = "";
            tbxArmsNo.Text    = "";
            namePnl.Visible   = false;
        }
        else
        {
            MessageController.Show("First save basic information.", MessageType.Warning, Page);
        }
    }
Example #2
0
 protected void OnBtnSave_Click(object sender, EventArgs e)
 {
     if (CobBacInfo.Save())
     {
         TabContainer1.ActiveTabIndex = 1;
     }
 }
Example #3
0
    protected void btnRemarksSave_Click(object sender, EventArgs e)
    {
        string BaNo = Session["ArmyNo"] as string;

        if (BaNo != null)
        {
            if (rmk.InsertUpdateRemrk())
            {
                TabContainer1.ActiveTabIndex = 0;
                CobBacInfo.Clear();
                Session["ArmyNo"] = null;
            }
        }
        else
        {
            MessageController.Show("First save basic information.", MessageType.Warning, Page);
        }
    }
Example #4
0
 protected void OnBtnReset_Click(object sender, EventArgs e)
 {
     CobBacInfo.Clear();
 }