protected void Page_Load(object sender, EventArgs e)
 {
    
     userName = Request.QueryString["userName"]; 
     userName = StringUtil.decode_URL(userName);
     
     ICoaReceiving = (ICOAReceiving)ServiceAgent.getInstance().GetMaintainObjectByName<ICOAReceiving>(WebConstant.COARECEIVING);
     try
     {
         msgInvalidFileType = this.GetLocalResourceObject(Pre + "_MsgInvalidFileType").ToString();
         msgEmptyFile = this.GetLocalResourceObject(Pre + "_msgEmptyFile").ToString();
         this.btnFileUpload.Value = this.GetLocalResourceObject(Pre + "_btnFileUpload").ToString();
         this.cancel.Value = this.GetLocalResourceObject(Pre + "_btnCancel").ToString();
     }
     catch (FisException ex)
     {
         showErrorMessage(ex.mErrmsg);
         return;
     }
     catch (Exception ex)
     {
         //show error
         showErrorMessage(ex.Message);
         return;
     }
 }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
       
        //PostBackTrigger trigger = new PostBackTrigger();
        //trigger.ControlID = btnUpLoad.ID;
        //updatePanel.Triggers.Add(trigger);
        ICoaReceiving = (ICOAReceiving)ServiceAgent.getInstance().GetMaintainObjectByName<ICOAReceiving>(WebConstant.COARECEIVING);
        if (!this.IsPostBack)
        {
             pmtMessage1 = this.GetLocalResourceObject(Pre + "_successMessage").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();
            //pmtMessage6 = this.GetLocalResourceObject(Pre + "_pmtMessage6").ToString();
            //pmtMessage7 = this.GetLocalResourceObject(Pre + "_pmtMessage7").ToString();

            
            userName = Master.userInfo.UserId;
            this.HiddenUserName.Value = userName;
            initLabel();

            try
            {
                showListByACAdaptorList();
            }
            catch (FisException fe)
            {
                showErrorMessage(fe.mErrmsg);
                return;
            }
            catch (Exception ee)
            {
                showErrorMessage(ee.Message);
                return;
            }
            

        }
        //IList<COAReceivingDef> datalst1 = ICoaReceiving.GetTmpTableItem("");
        //bindTable(datalst1, DEFAULT_ROWS);
   //     bindTable(null, DEFAULT_ROWS);
    }