コード例 #1
0
 public FDPrintTxt()
 {
     Report  = new TReport();
     details = new Details {
         Instance = this
     };
 }
コード例 #2
0
        public IHttpActionResult PutTReport(int id, TReport tReport)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != tReport.Id)
            {
                return(BadRequest());
            }

            db.Entry(tReport).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!TReportExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
コード例 #3
0
        public IHttpActionResult GetTReport(int id)
        {
            TReport tReport = db.TReports.Find(id);

            if (tReport == null)
            {
                return(NotFound());
            }

            return(Ok(tReport));
        }
コード例 #4
0
        public IHttpActionResult PostTReport(TReport tReport)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.TReports.Add(tReport);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = tReport.Id }, tReport));
        }
コード例 #5
0
 public SavingPassbookTxt()
 {
     Report       = new TReport();
     pageLvlStart = new PageLvlStart {
         Instance = this
     };
     details = new Details {
         Instance = this
     };
     pageLvlEnd = new PageLvlEnd {
         Instance = this
     };
 }
コード例 #6
0
        public IHttpActionResult DeleteTReport(int id)
        {
            TReport tReport = db.TReports.Find(id);

            if (tReport == null)
            {
                return(NotFound());
            }

            db.TReports.Remove(tReport);
            db.SaveChanges();

            return(Ok(tReport));
        }
コード例 #7
0
 public ClsStatementViewText()
 {
     Report       = new TReport();
     pageLvlStart = new PageLvlStart {
         Instance = this
     };
     details = new Details {
         Instance = this
     };
     pageLvlEnd = new PageLvlEnd {
         Instance = this
     };
     reportLvlEnd = new ReportLvlEnd {
         Instance = this
     };
 }
コード例 #8
0
 public BalanceSheetReportTxt()
 {
     Report       = new TReport();
     pageLvlStart = new PageLvlStart {
         Instance = this
     };
     reportLvlStart = new ReportLvlStart {
         Instance = this
     };
     details = new Details {
         Instance = this
     };
     pageLvlEnd = new PageLvlEnd {
         Instance = this
     };
     reportLvlEnd = new ReportLvlEnd {
         Instance = this
     };
 }
コード例 #9
0
 public CutBookTxt()
 {
     Report       = new TReport();
     pageLvlStart = new PageLvlStart {
         Instance = this
     };
     reportLvlStart = new ReportLvlStart {
         Instance = this
     };
     details = new Details {
         Instance = this
     };
     pageLvlEnd = new PageLvlEnd {
         Instance = this
     };
     reportLvlEnd = new ReportLvlEnd {
         Instance = this
     };
 }
コード例 #10
0
 public AccountStatementTxt()
 {
     Report       = new TReport();
     pageLvlStart = new PageLvlStart {
         Instance = this
     };
     reportLvlStart = new ReportLvlStart {
         Instance = this
     };
     details = new Details {
         Instance = this
     };
     pageLvlEnd = new PageLvlEnd {
         Instance = this
     };
     reportLvlEnd = new ReportLvlEnd {
         Instance = this
     };
 }
コード例 #11
0
 public DayOpenErrorsTxt()
 {
     Report       = new TReport();
     pageLvlStart = new PageLvlStart {
         Instance = this
     };
     reportLvlStart = new ReportLvlStart {
         Instance = this
     };
     details = new Details {
         Instance = this
     };
     pageLvlEnd = new PageLvlEnd {
         Instance = this
     };
     reportLvlEnd = new ReportLvlEnd {
         Instance = this
     };
 }
コード例 #12
0
 public ProfitAndLossTxt()
 {
     Report       = new TReport();
     pageLvlStart = new PageLvlStart {
         Instance = this
     };
     reportLvlStart = new ReportLvlStart {
         Instance = this
     };
     details = new Details {
         Instance = this
     };
     pageLvlEnd = new PageLvlEnd {
         Instance = this
     };
     reportLvlEnd = new ReportLvlEnd {
         Instance = this
     };
 }
コード例 #13
0
 public DayClosedReportTxt()
 {
     Report       = new TReport();
     pageLvlStart = new PageLvlStart {
         Instance = this
     };
     reportLvlStart = new ReportLvlStart {
         Instance = this
     };
     details = new Details {
         Instance = this
     };
     pageLvlEnd = new PageLvlEnd {
         Instance = this
     };
     reportLvlEnd = new ReportLvlEnd {
         Instance = this
     };
 }
コード例 #14
0
    public OIReportText()
    {
        //
        // TODO: Add constructor logic here
        //


        Report       = new TReport();
        pageLvlStart = new PageLvlStart {
            Instance = this
        };
        reportLvlStart = new ReportLvlStart {
            Instance = this
        };
        details = new Details {
            Instance = this
        };
        pageLvlEnd = new PageLvlEnd {
            Instance = this
        };
        reportLvlEnd = new ReportLvlEnd {
            Instance = this
        };
    }
コード例 #15
0
 // --------------------------------------------------------------------
 // ダミーコンストラクター(Visual Studio・TransitionMessage 用)
 // --------------------------------------------------------------------
 public EditReportWindowViewModel()
 {
     Report = new TReport();
 }
コード例 #16
0
        // ====================================================================
        // コンストラクター
        // ====================================================================

        // --------------------------------------------------------------------
        // プログラム中で使うべき引数付きコンストラクター
        // --------------------------------------------------------------------
        public EditReportWindowViewModel(TReport report)
        {
            Report = report;
        }