Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DropDownListCommom.BindComp(ddlCompID, lblCompTitle);
            TextBoxCommon.SetOnlyInteger(txtWidth);
            TextBoxCommon.SetOnlyInteger(txtSeq);

            RadioButtonListCommom.BindUseYN(rbnVisibleYN);
            RadioButtonListCommom.BindUseYN(rbnColEmpVisibleYN);
            //RadioButtonListCommom.BindUseYN(rbnGradeToPointVisibleYN);
            //RadioButtonListCommom.BindUseYN(rbnEstTermSubVisibleYN);
            //RadioButtonListCommom.BindUseYN(rbnEstTermStepVisibleYN);

            DropDownListCommom.BindColumnStyle(ddlColStyleID, false);

            MakeData(ddlHAlign, halignList);
            MakeData(ddlDataType, dataTypeList);

            ButtonStatusInit();

            ibnSearch.Attributes.Add("onclick", "return CheckForm();");
            ibnCheckID.Attributes.Add("onclick", "return CheckID();");
            ibnNew.Attributes.Add("onclick", "return CheckForm();");
            ibnSave.Attributes.Add("onclick", "return SaveCheckForm();");
            ibnDelete.Attributes.Add("onclick", "return ConfirmYN();");
        }

        COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID);
        EST_ID  = hdfEstID.Value;

        ltrScript.Text = string.Empty;
    }