Пример #1
0
        protected override object GetEditObject()
        {
            if (_facade == null)
            {
                _facade = new BenQGuru.eMES.ReportView.ReportViewFacade(this.DataProvider);
            }
            RptViewReportStyle style = (RptViewReportStyle)_facade.GetRptViewReportStyle(decimal.Parse(this.txtStyleID.Text));

            if (style == null)
            {
                style = this._facade.CreateNewRptViewReportStyle();
            }

            style.Name         = FormatHelper.PKCapitalFormat(FormatHelper.CleanString(this.txtStyleNameEdit.Text, 40));
            style.Description  = this.txtStyleDescEdit.Text;
            style.MaintainUser = this.GetUserCode();
            style.MaintainDate = FormatHelper.TODateInt(DateTime.Today);
            style.MaintainTime = FormatHelper.TOTimeInt(DateTime.Now);

            return(style);
        }