コード例 #1
0
        protected static FR_Guid Execute(DbConnection Connection, DbTransaction Transaction, P_L5LR_SLRE_1043 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            //Leave UserCode region to enable user code saving
            #region UserCode
            var returnValue = new FR_Guid();

            ORM_RES_RealestateProperty_LandRegistrationEntry landRegistrationEntry = new ORM_RES_RealestateProperty_LandRegistrationEntry();
            if (Parameter.RES_RealestateProperty_LandRegistrationEntryID != Guid.Empty)
            {
                var result = landRegistrationEntry.Load(Connection, Transaction, Parameter.RES_RealestateProperty_LandRegistrationEntryID);
                if (result.Status != FR_Status.Success || landRegistrationEntry.RES_RealestateProperty_LandRegistrationEntryID == Guid.Empty)
                {
                    var error = new FR_Guid();
                    error.ErrorMessage = "No Such ID";
                    error.Status       = FR_Status.Error_Internal;
                    return(error);
                }
            }
            landRegistrationEntry.LandRegistrationEntry_GroundAreaSize_in_sqm = Parameter.LandRegistrationEntry_GroundAreaSize_in_sqm;
            landRegistrationEntry.LandRegistrationEntry_LandLot           = Parameter.LandRegistrationEntry_LandLot;
            landRegistrationEntry.LandRegistrationEntry_LandTitleRegister = Parameter.LandRegistrationEntry_LandTitleRegister;
            landRegistrationEntry.LandRegistrationEntry_Marking           = Parameter.LandRegistrationEntry_Marking;
            landRegistrationEntry.LandRegistrationEntry_Parcel_FromNumber = Parameter.LandRegistrationEntry_Parcel_FromNumber;
            landRegistrationEntry.LandRegistrationEntry_Parcel_ToNumber   = Parameter.LandRegistrationEntry_Parcel_ToNumber;
            landRegistrationEntry.LandRegistrationEntry_Sheet             = Parameter.LandRegistrationEntry_Sheet;
            landRegistrationEntry.RealestateProperty_RefID = Parameter.RealestateProperty_RefID;
            landRegistrationEntry.Tenant_RefID             = securityTicket.TenantID;
            landRegistrationEntry.Save(Connection, Transaction);

            returnValue.Result = landRegistrationEntry.RES_RealestateProperty_LandRegistrationEntryID;
            //Put your code here
            return(returnValue);

            #endregion UserCode
        }
コード例 #2
0
        protected static FR_Base Execute(DbConnection Connection, DbTransaction Transaction, P_L5LR_DLRE_1043 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            //Leave UserCode region to enable user code saving
            #region UserCode
            var returnValue = new FR_Base();

            ORM_RES_RealestateProperty_LandRegistrationEntry registrationEntry = new ORM_RES_RealestateProperty_LandRegistrationEntry();
            registrationEntry.Load(Connection, Transaction, Parameter.RES_RealestateProperty_LandRegistrationEntryID);
            registrationEntry.Remove(Connection, Transaction);
            //Put your code here
            return(returnValue);

            #endregion UserCode
        }