Beispiel #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);
        }
    }
Beispiel #2
0
    protected void btnSpecialQualificationSave_Click(object sender, EventArgs e)
    {
        string BaNo = Session["ArmyNo"] as string;

        if (BaNo != null)
        {
            if (SpecialQualification.SaveSpecialQualification())
            {
                TabContainer1.ActiveTabIndex = 6;
            }
        }
        else
        {
            MessageController.Show("First save basic information.", MessageType.Warning, Page);
        }
    }