예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetTransactionOptions(Options, true, false, false, false, false, false, false);
                //SetTransactionOptions(Options);
                SetPageDescription(Resources.MainMenu.IM_03_07);
                currentOption = Options.SelectedValue;

                string pu      = Request.QueryString["PU"];
                string fefid   = Request.QueryString["FID"];
                string stateid = Request.QueryString["ST"];
                if (fefid != null)
                {
                    CompanyFormID.Value        = fefid;
                    currentOption              = "UPD";
                    OptionsPanel.Visible       = false;
                    SearchPanel.Visible        = false;
                    DetailPanel.Visible        = true;
                    ConfirmButtonPanel.Visible = true;

                    FinancialSDZEEForm entity = CxFinancialSDZEEForm.GetFormById(int.Parse(fefid));
                    FormMessageLiteral.Text = GetPeriodMessage(Resources.Resource.lForm2Message, entity.PeriodNumber, entity.Form.Periodicity.Code, entity.FormDate);
                    if (stateid == "3")
                    {
                        DetailPanel.Enabled        = false;
                        ApprovePanel.Visible       = true;
                        ConfirmButtonPanel.Visible = false;
                        FormMessageLiteral.Text    = "";
                    }

                    FillDateLiteral.Text = DateTime.Now.ToShortDateString();
                    ShowCurrentForm(int.Parse(fefid));
                }
            }
            else
            {
                currentOption = Options.SelectedValue;
            }
        }