public void btnRefresh_Click(object sender, EventArgs e)
        {
            IUIRecord record = this.CostAccountantPart.Model.Views["UserDefAllocRate"].FocusedRecord;

            if (record != null)
            {
                long   userRateID      = PubClass.GetLong(record["ID"]);
                string strUserRateCode = PubClass.GetString(record["Code"]);

                if (!PubClass.IsNull(strUserRateCode))
                {
                    long   accID      = PubClass.GetLong(CostAccountantPart.CurrentState[UserDefAllocRateAccountUIFormWebPart.Const_UserDef_AccountPeriod]);
                    string strAccCode = PubClass.GetString(CostAccountantPart.CurrentState[UserDefAllocRateAccountUIFormWebPart.Const_UserDef_AccountPeriod_Code]);
                    string strAccName = PubClass.GetString(CostAccountantPart.CurrentState[UserDefAllocRateAccountUIFormWebPart.Const_UserDef_AccountPeriod_Name]);

                    //GetNumAllocationDTOData getnumBP = new GetNumAllocationDTOData();
                    //if (userCode == "001")
                    //{
                    //    getnumBP.IsCarLoad = true;
                    //}
                    //else
                    //{
                    //    getnumBP.IsCarLoad = false;
                    //}
                    //getnumBP.AccountingPeriodID = this.CurrentModel.AccountingPeriodView.FocusedRecord.AccountingPeriod.GetValueOrDefault();
                    //getnumBP.UserDefAllocRateID = Convert.ToInt64(userID);

                    //new GetNumAllocationBPProxy
                    //{
                    //    InDTO = getnumBP
                    //}.Do();

                    GetNumAllocationBPProxy proxy = new GetNumAllocationBPProxy();
                    proxy.AccountPeriod      = accID;
                    proxy.UserDefAllocRateID = userRateID;
                    proxy.UserRateCode       = strUserRateCode;

                    proxy.Do();


                    ((BaseAction)this.CostAccountantPart.Action).NavigateAction.Refresh(null);
                }
            }
        }
        public void btnRefresh_Click(object sender, EventArgs e)
        {
            IUIRecord record = this.CostAccountantPart.Model.Views["UserDefAllocRate"].FocusedRecord;
            if (record != null)
            {
                long userRateID = PubClass.GetLong(record["ID"]);
                string strUserRateCode = PubClass.GetString(record["Code"]);

                if (!PubClass.IsNull(strUserRateCode))
                {
                    long accID = PubClass.GetLong(CostAccountantPart.CurrentState[UserDefAllocRateAccountUIFormWebPart.Const_UserDef_AccountPeriod]);
                    string strAccCode = PubClass.GetString(CostAccountantPart.CurrentState[UserDefAllocRateAccountUIFormWebPart.Const_UserDef_AccountPeriod_Code]);
                    string strAccName = PubClass.GetString(CostAccountantPart.CurrentState[UserDefAllocRateAccountUIFormWebPart.Const_UserDef_AccountPeriod_Name]);

                    //GetNumAllocationDTOData getnumBP = new GetNumAllocationDTOData();
                    //if (userCode == "001")
                    //{
                    //    getnumBP.IsCarLoad = true;
                    //}
                    //else
                    //{
                    //    getnumBP.IsCarLoad = false;
                    //}
                    //getnumBP.AccountingPeriodID = this.CurrentModel.AccountingPeriodView.FocusedRecord.AccountingPeriod.GetValueOrDefault();
                    //getnumBP.UserDefAllocRateID = Convert.ToInt64(userID);

                    //new GetNumAllocationBPProxy
                    //{
                    //    InDTO = getnumBP
                    //}.Do();

                    GetNumAllocationBPProxy proxy = new GetNumAllocationBPProxy();
                    proxy.AccountPeriod = accID;
                    proxy.UserDefAllocRateID = userRateID;
                    proxy.UserRateCode = strUserRateCode;

                    proxy.Do();

                    ((BaseAction)this.CostAccountantPart.Action).NavigateAction.Refresh(null);
                }
            }
        }