コード例 #1
0
        protected void save()
        {
            if (lbl_guid.Text == "lbl_guid")
            {
                MessageBox.Show("Please select a deployment period from the list", "Guard Profiler", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                Guard_deployment.save_update_my_current_deployment_period("save_my_current_deploy_period", Convert.ToInt32(lbl_guid.Text), SystemConst._user_id);
                MessageBox.Show("Successfully updated your current deployment period", "Guard Profiler", MessageBoxButtons.OK, MessageBoxIcon.Information);

                return_deployment_periods();
                LoadMycurrentDeployPeriod();
                Set_current_deployment_periods();
            }
        }