コード例 #1
0
        private POEntryModel GetCreateStateModel()
        {
            POEntryFormData formData = new POEntryFormData();

            PODTO pODTO = new PODTO();

            return(new POEntryModel()
            {
                FormData = formData,
                Model = new PODTO(),
            });
        }
コード例 #2
0
        private POEntryModel GetUpdateStateModel(int po_PK)
        {
            POEntryFormData formData = new POEntryFormData();

            PODTO pODTO = POQuery.GetByPrimaryKey(po_PK);

            if (pODTO == null)
            {
                throw new KairosException($"Record with primary key '{po_PK}' is not found.");
            }



            return(new POEntryModel()
            {
                FormData = formData,
                Model = pODTO
            });
        }