コード例 #1
0
        /// <summary>
        /// 保存按钮的点击事件
        /// </summary>
        private void commonToolStrip1_SaveClick(object sender, EventArgs e)
        {
            if (!this.CheckG3())
            {
                return;
            }

            FrmExRateCardVo frmExRateCardVo = setFrom2Vo();

            frmExRateCardVo.IMode = strMode;


            action.InsExchangeRateStp(frmExRateCardVo);


            currentGroup = 2;
            this.SetCommonToolstrip();
            this.SetGroupLayout();
            Data_Inquiry();
            this.ClearG3();


            /*
             * //this.ClearError();
             * //this.ClearError();
             * //this.SetToolBar(this.strMode);
             * //this.SetLayout(this.strMode);
             */
        }
コード例 #2
0
        private FrmExRateCardVo setFrom2Vo()
        {
            char            chaZero         = '0';
            FrmExRateCardVo frmExRateCardVo = new FrmExRateCardVo();

            frmExRateCardVo.ICompanyCd  = this.txtCompany.Text;           //公司代码
            frmExRateCardVo.IDlCurrCd   = this.tddlCurr_G3.Selectedvalue; //结算货币
            frmExRateCardVo.ICnvMethod  = this.cndCalcMode.Selectedvalue;
            frmExRateCardVo.IEffEndDate = Convert.ToDecimal(this.xdtpEffEedDate.Value.Year.ToString()
                                                            + this.xdtpEffEedDate.Value.Month.ToString().PadLeft(2, chaZero)
                                                            + this.xdtpEffEedDate.Value.Day.ToString());//有效日
            frmExRateCardVo.IRate    = Convert.ToDecimal(ntxtRate.Text);
            frmExRateCardVo.IRateCls = this.clsddl_9A_G3.Selectedvalue;


            return(frmExRateCardVo);
        }
コード例 #3
0
        private Boolean Data_Inquiry()
        {
            Boolean bolResult = false;

            this.Cursor = Cursors.WaitCursor;

            FrmExRateCardVo cardvo = new FrmExRateCardVo();

            cardvo.ICompanyCd = this.txtCompany.Text;
            cardvo.IDlCurrCd  = this.tddlCurr.Selectedvalue;
            cardvo.IRateCls   = clsddl_9A.Selectedvalue;

            Int32 intRes = action.GetRateMsDetail(pgvRateMs, cardvo);

            if (intRes > 0)
            {
                bolResult = true;
            }


            this.Cursor = Cursors.Default;

            return(bolResult);
        }