protected void Page_Load(object sender, EventArgs e)
 {
     iModuleApprovalItem = ServiceAgent.getInstance().GetMaintainObjectByName<IModuleApprovalItem>(WebConstant.ModuleApprovalItemObject);
     approvalItemID = Request.QueryString["approvalItemID"].ToString();
     FamilyTop = Request.QueryString["familyTop"].ToString();
     if (string.IsNullOrEmpty(approvalItemID))
     {
         showErrorMessage("請選擇一筆資料後再查詢");
         return;
     }
     getFamilyList();
     this.lblfamily.Text = FamilyTop;
 }
    protected void Page_Load(object sender, EventArgs e)
    {

        try
        {
            isCheckItemTypeLoad = false;
            this.cmbModuleTop.Load += new EventHandler(cmbModuleTop_Load);
            iModuleApprovalItem = ServiceAgent.getInstance().GetMaintainObjectByName<IModuleApprovalItem>(WebConstant.ModuleApprovalItemObject);
            iSysSetting = ServiceAgent.getInstance().GetMaintainObjectByName<ISysSetting>(WebConstant.MaintainSysSettingObject);
            pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString();
            pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString();
            pmtMessage3 = this.GetLocalResourceObject(Pre + "_pmtMessage3").ToString();
            pmtMessage4 = this.GetLocalResourceObject(Pre + "_pmtMessage4").ToString();
            pmtMessage5 = this.GetLocalResourceObject(Pre + "_pmtMessage5").ToString();
            pmtMessage10 = this.GetLocalResourceObject(Pre + "_pmtMessage10").ToString();
            //rr.Attributes.Add("OnClick", "changeRadio(this)");
            
            if (!this.IsPostBack)
            {
                
                userName = Master.userInfo.UserId;
                this.HiddenUserName.Value = userName;
                initLabel();
                initcmbModuleTop("");
                initcmbModule();
                initFamilyList();
                bindTable(null, DEFAULT_ROWS);
            }
            ScriptManager.RegisterStartupScript(this.updatePanelAll, typeof(System.Object), "InitControl", "initControls();", true);
        }
        catch (FisException ex)
        {
            showErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            showErrorMessage(ex.Message);
        }
    }