protected void BtnDelete_Click(object sender, EventArgs e) { int DeleteId = 0; try { if (ViewState["EditID"] != null) { DeleteId = Convert.ToInt32(ViewState["EditID"]); } if (DeleteId != 0) { Entity_Property.PropertyId = DeleteId; Entity_Property.UserId = Convert.ToInt32(Session["UserID"]); Entity_Property.LoginDate = DateTime.Now; int iDelete = obj_Property.DeletePropertyMaster(ref Entity_Property, out StrError); if (iDelete != 0) { Obj_Comm.ShowPopUpMsg("Record Deleted Successfully..!", this.Page); MakeEmptyForm(); } } Entity_Property = null; Obj_Comm = null; } catch (Exception ex) { throw new Exception(ex.Message); } }
public override void OverrideProperties(PropertyMaster master) { var scattering = target.value.Resolve(master); if (!scattering) { return; } Override(worldRayleighColorRamp, ref scattering.worldRayleighColorRamp); Override(worldRayleighColorIntensity, ref scattering.worldRayleighColorIntensity); Override(worldRayleighDensity, ref scattering.worldRayleighDensity); Override(worldRayleighExtinctionFactor, ref scattering.worldRayleighExtinctionFactor); Override(worldRayleighIndirectScatter, ref scattering.worldRayleighIndirectScatter); Override(worldMieColorRamp, ref scattering.worldMieColorRamp); Override(worldMieColorIntensity, ref scattering.worldMieColorIntensity); Override(worldMieDensity, ref scattering.worldMieDensity); Override(worldMieExtinctionFactor, ref scattering.worldMieExtinctionFactor); Override(worldMiePhaseAnisotropy, ref scattering.worldMiePhaseAnisotropy); Override(worldNearScatterPush, ref scattering.worldNearScatterPush); Override(worldNormalDistance, ref scattering.worldNormalDistance); Override(heightRayleighColor, ref scattering.heightRayleighColor); Override(heightRayleighIntensity, ref scattering.heightRayleighIntensity); Override(heightRayleighDensity, ref scattering.heightRayleighDensity); Override(heightMieDensity, ref scattering.heightMieDensity); Override(heightExtinctionFactor, ref scattering.heightExtinctionFactor); Override(heightSeaLevel, ref scattering.heightSeaLevel); Override(heightDistance, ref scattering.heightDistance); Override(heightPlaneShift, ref scattering.heightPlaneShift); Override(heightNearScatterPush, ref scattering.heightNearScatterPush); Override(heightNormalDistance, ref scattering.heightNormalDistance); Override(skyDomeScale, ref scattering.skyDomeScale); Override(skyDomeRotation, ref scattering.skyDomeRotation); Override(skyDomeTrackedYawRotation, ref scattering.skyDomeTrackedYawRotation); Override(skyDomeVerticalFlip, ref scattering.skyDomeVerticalFlip); Override(skyDomeCube, ref scattering.skyDomeCube); Override(skyDomeExposure, ref scattering.skyDomeExposure); Override(skyDomeTint, ref scattering.skyDomeTint); Override(useOcclusion, ref scattering.useOcclusion); Override(occlusionBias, ref scattering.occlusionBias); Override(occlusionBiasIndirect, ref scattering.occlusionBiasIndirect); Override(occlusionBiasClouds, ref scattering.occlusionBiasClouds); Override(occlusionDownscale, ref scattering.occlusionDownscale); Override(occlusionSamples, ref scattering.occlusionSamples); Override(occlusionDepthFixup, ref scattering.occlusionDepthFixup); Override(occlusionDepthThreshold, ref scattering.occlusionDepthThreshold); Override(occlusionFullSky, ref scattering.occlusionFullSky); Override(occlusionBiasSkyRayleigh, ref scattering.occlusionBiasSkyRayleigh); Override(occlusionBiasSkyMie, ref scattering.occlusionBiasSkyMie); Override(worldScaleExponent, ref scattering.worldScaleExponent); Override(forcePerPixel, ref scattering.forcePerPixel); Override(forcePostEffect, ref scattering.forcePostEffect); }
public override void OverrideProperties(PropertyMaster master) { var lc = target.value.Resolve(master); if (!lc) { return; } if (environmentSmallCullDistance.overrideState) { lc.SetCullDistance(LayerCulling.Layer.EnvironmentSmall, environmentSmallCullDistance.value); } if (environmentSmallShadowCullDistance.overrideState) { lc.SetShadowCullDistance(LayerCulling.Layer.EnvironmentSmall, environmentSmallShadowCullDistance.value); } if (environmentLargeCullDistance.overrideState) { lc.SetCullDistance(LayerCulling.Layer.EnvironmentLarge, environmentLargeCullDistance.value); } if (environmentLargeShadowCullDistance.overrideState) { lc.SetShadowCullDistance(LayerCulling.Layer.EnvironmentLarge, environmentLargeShadowCullDistance.value); } if (undergrowthSmallCullDistance.overrideState) { lc.SetCullDistance(LayerCulling.Layer.UndergrowthSmall, undergrowthSmallCullDistance.value); } if (undergrowthSmallShadowCullDistance.overrideState) { lc.SetShadowCullDistance(LayerCulling.Layer.UndergrowthSmall, undergrowthSmallShadowCullDistance.value); } if (undergrowthMediumCullDistance.overrideState) { lc.SetCullDistance(LayerCulling.Layer.UndergrowthMedium, undergrowthMediumCullDistance.value); } if (undergrowthMediumShadowCullDistance.overrideState) { lc.SetShadowCullDistance(LayerCulling.Layer.UndergrowthMedium, undergrowthMediumShadowCullDistance.value); } if (undergrowthLargeCullDistance.overrideState) { lc.SetCullDistance(LayerCulling.Layer.UndergrowthLarge, undergrowthLargeCullDistance.value); } if (undergrowthLargeShadowCullDistance.overrideState) { lc.SetShadowCullDistance(LayerCulling.Layer.UndergrowthLarge, undergrowthLargeShadowCullDistance.value); } }
public int UpdatePropertyMaster(ref PropertyMaster Entity_PM, out string StrError) { int iInsert = 0; StrError = string.Empty; try { SqlParameter pAction = new SqlParameter(PropertyMaster._Action, SqlDbType.BigInt); SqlParameter pPropertyId = new SqlParameter(PropertyMaster._PropertyId, SqlDbType.BigInt); SqlParameter pProperty = new SqlParameter(PropertyMaster._Property, SqlDbType.NVarChar); SqlParameter pPropertyAddress = new SqlParameter(PropertyMaster._PropertyAddress, SqlDbType.NVarChar); SqlParameter pCompanyId = new SqlParameter(PropertyMaster._CompanyId, SqlDbType.BigInt); SqlParameter pPropertyTypeId = new SqlParameter(PropertyMaster._PropertyTypeId, SqlDbType.BigInt); SqlParameter pPropertySubTypeId = new SqlParameter(PropertyMaster._PropertySubTypeId, SqlDbType.BigInt); SqlParameter pCityId = new SqlParameter(PropertyMaster._CityId, SqlDbType.BigInt); SqlParameter pLocationId = new SqlParameter(PropertyMaster._LocationId, SqlDbType.BigInt); SqlParameter pCreatedBy = new SqlParameter(PropertyMaster._UserId, SqlDbType.BigInt); SqlParameter pCreatedDate = new SqlParameter(PropertyMaster._LoginDate, SqlDbType.DateTime); pAction.Value = 2; pPropertyId.Value = Entity_PM.PropertyId; pProperty.Value = Entity_PM.Property; pPropertyAddress.Value = Entity_PM.PropertyAddress; pCompanyId.Value = Entity_PM.CompanyId; pPropertyTypeId.Value = Entity_PM.PropertyTypeId; pPropertySubTypeId.Value = Entity_PM.PropertySubTypeId; pCityId.Value = Entity_PM.CityId; pLocationId.Value = Entity_PM.LocationId; pCreatedBy.Value = Entity_PM.UserId; pCreatedDate.Value = Entity_PM.LoginDate; SqlParameter[] param = new SqlParameter[] { pAction, pPropertyId, pProperty, pPropertyAddress, pCompanyId, pPropertyTypeId, pPropertySubTypeId, pCityId, pLocationId, pCreatedBy, pCreatedDate }; Open(CONNECTION_STRING); BeginTransaction(); iInsert = SQLHelper.ExecuteNonQuery(_Connection, _Transaction, CommandType.StoredProcedure, PropertyMaster.SP_PropertyMaster, param); if (iInsert > 0) { CommitTransaction(); } else { RollBackTransaction(); } } catch (Exception ex) { RollBackTransaction(); StrError = ex.Message; } finally { Close(); } return(iInsert); }
public int InsertPMDetail(ref PropertyMaster Entity_PM, out string StrError) { int iInsert = 0; StrError = string.Empty; try { SqlParameter pAction = new SqlParameter(PropertyMaster._Action, SqlDbType.BigInt); SqlParameter pPropertyId = new SqlParameter(PropertyMaster._PropertyId, SqlDbType.BigInt); SqlParameter pFlatTypeId = new SqlParameter(PropertyMaster._FlatTypeId, SqlDbType.BigInt); SqlParameter pUnitArea = new SqlParameter(PropertyMaster._UnitArea, SqlDbType.Decimal); SqlParameter pUnitNo = new SqlParameter(PropertyMaster._UnitNo, SqlDbType.NVarChar); SqlParameter pSocietyMaintenaceAmt = new SqlParameter(PropertyMaster._SocietyMaintenaceAmt, SqlDbType.Decimal); SqlParameter pPropertyTaxAmt = new SqlParameter(PropertyMaster._PropertyTaxAmt, SqlDbType.Decimal); pAction.Value = 9; pPropertyId.Value = Entity_PM.PropertyId; pFlatTypeId.Value = Entity_PM.FlatTypeId; pUnitArea.Value = Entity_PM.UnitArea; pUnitNo.Value = Entity_PM.UnitNo; pSocietyMaintenaceAmt.Value = Entity_PM.SocietyMaintenaceAmt; pPropertyTaxAmt.Value = Entity_PM.PropertyTaxAmt; SqlParameter[] param = new SqlParameter[] { pAction, pPropertyId, pFlatTypeId, pUnitArea, pUnitNo, pSocietyMaintenaceAmt, pPropertyTaxAmt }; Open(CONNECTION_STRING); BeginTransaction(); iInsert = SQLHelper.ExecuteNonQuery(_Connection, _Transaction, CommandType.StoredProcedure, PropertyMaster.SP_PropertyMaster, param); if (iInsert > 0) { CommitTransaction(); } else { RollBackTransaction(); } } catch (Exception ex) { RollBackTransaction(); StrError = ex.Message; } finally { Close(); } return(iInsert); }
public ActionResult Add(PropertyMaster objPropertyMaster) { if (ModelState.IsValid) { ModelState.Clear(); objPropertyMaster.AddData(objPropertyMaster); } else { } var lst = PropertyMaster.GetList(); return(View("AddRecord", lst.AsEnumerable())); }
public int DeletePropertyMaster(ref PropertyMaster Entity_PM, out string StrError) { int iDelete = 0; StrError = string.Empty; try { SqlParameter pAction = new SqlParameter(PropertyMaster._Action, SqlDbType.BigInt); SqlParameter pPropertyId = new SqlParameter(PropertyMaster._PropertyId, SqlDbType.BigInt); SqlParameter pDeletedBy = new SqlParameter(PropertyMaster._UserId, SqlDbType.BigInt); SqlParameter pDeletedDate = new SqlParameter(PropertyMaster._LoginDate, SqlDbType.DateTime); pAction.Value = 3; pPropertyId.Value = Entity_PM.PropertyId; pDeletedBy.Value = Entity_PM.UserId; pDeletedDate.Value = Entity_PM.LoginDate; SqlParameter[] param = new SqlParameter[] { pAction, pPropertyId, pDeletedBy, pDeletedDate }; Open(CONNECTION_STRING); BeginTransaction(); iDelete = SQLHelper.ExecuteNonQuery(_Connection, _Transaction, CommandType.StoredProcedure, PropertyMaster.SP_PropertyMaster, param); if (iDelete > 0) { CommitTransaction(); } else { RollBackTransaction(); } } catch (Exception ex) { RollBackTransaction(); StrError = ex.Message; } finally { Close(); } return(iDelete); }
public override void OverrideProperties(PropertyMaster master) { var af = target.value.Resolve(master); if (!af) { return; } var infl = af.influence; Override(influence, ref infl); af.influence = infl; Override(focusDistanceWalk, ref af.focusDistanceWalk); Override(apertureWalk, ref af.apertureWalk); Override(focusDistanceRun, ref af.focusDistanceRun); Override(apertureRun, ref af.apertureRun); }
public override void OverrideProperties(PropertyMaster master) { var light = target.value.Resolve(master); if (!light) { return; } if (rotation.overrideState) { light.transform.localRotation = Quaternion.Euler(rotation); } if (color.overrideState) { light.color = color.value; } if (colorTemperature.overrideState) { light.colorTemperature = colorTemperature.value; } if (intensity.overrideState) { light.intensity = intensity.value; } if (bounceIntensity.overrideState) { light.bounceIntensity = bounceIntensity.value; } if (cookie.overrideState) { light.cookie = cookie.value; } if (cookieSize.overrideState) { light.cookieSize = cookieSize.value; } }
public int InsertPMExpDetail(ref PropertyMaster Entity_Property, out string StrError) { int iInsert = 0; StrError = string.Empty; try { SqlParameter pAction = new SqlParameter(PropertyMaster._Action, SqlDbType.BigInt); SqlParameter pPropertyId = new SqlParameter(PropertyMaster._PropertyId, SqlDbType.BigInt); SqlParameter pExpenseHdId = new SqlParameter(PropertyMaster._ExpenseHdId, SqlDbType.BigInt); SqlParameter pAmount = new SqlParameter(PropertyMaster._Amount, SqlDbType.Decimal); pAction.Value = 10; pPropertyId.Value = Entity_Property.PropertyId; pExpenseHdId.Value = Entity_Property.ExpenseHdId; pAmount.Value = Entity_Property.Amount; SqlParameter[] param = new SqlParameter[] { pAction, pPropertyId, pExpenseHdId, pAmount }; Open(CONNECTION_STRING); BeginTransaction(); iInsert = SQLHelper.ExecuteNonQuery(_Connection, _Transaction, CommandType.StoredProcedure, PropertyMaster.SP_PropertyMaster, param); if (iInsert > 0) { CommitTransaction(); } else { RollBackTransaction(); } } catch (Exception ex) { RollBackTransaction(); StrError = ex.Message; } finally { Close(); } return(iInsert); }
public ActionResult Add() { if (Request.QueryString.Count > 0) { if (Request.QueryString["page"] != null) { var lst = PropertyMaster.GetList(); return(View("AddRecord", lst.AsEnumerable())); } else if (Request.QueryString["sort"] != null && Request.QueryString["sortdir"] != null) { var lst = PropertyMaster.GetList(Request.QueryString["sort"].ToString(), Request.QueryString["sortdir"].ToString()); return(View("AddRecord", lst.AsEnumerable())); } } //var PropertyList = PropertyMaster.GetList(); return(View("")); }
public static void Init() { currentPC = null; currentPM = null; currentPropManager = null; }
public abstract void OverrideProperties(PropertyMaster master);
public override void OverrideProperties(PropertyMaster master) { var control = target.value.Resolve(master); if (!control) { return; } // Global Override(windGlobalStrengthScale, ref control.windGlobalStrengthScale); // Ship hack: let wind ambience influence wind strength if (Application.isPlaying) { float threshold = 0.05f; Override(windGlobalStrengthAudioAmplitudeThreshold, ref threshold); AxelF.Heartbeat.ambienceWindThreshold = threshold; float influence = 0f; Override(windGlobalStrengthAudioInfluence, ref influence); control.windGlobalStrengthScale += control.windGlobalStrengthScale * AxelF.Heartbeat.ambienceWindStrength * influence; } Override(windDirection, ref control.windDirection); Override(windDirectionVariance, ref control.windDirectionVariance); Override(windDirectionVariancePeriod, ref control.windDirectionVariancePeriod); Override(windZoneIntensityOffset, ref control.windZoneIntensityOffset); Override(windZoneIntensityBaseScale, ref control.windZoneIntensityBaseScale); Override(windZoneIntensityGustScale, ref control.windZoneIntensityGustScale); Override(windZoneIntensityFromGrass, ref control.windZoneIntensityFromGrass); // Grass Base Override(windBaseStrength, ref control.windBaseStrength); Override(windBaseStrengthOffset, ref control.windBaseStrengthOffset); Override(windBaseStrengthPhase, ref control.windBaseStrengthPhase); Override(windBaseStrengthVariancePeriod, ref control.windBaseStrengthVariancePeriod); // Grass Gust Override(windGustStrength, ref control.windGustStrength); Override(windGustStrengthOffset, ref control.windGustStrengthOffset); Override(windGustStrengthPhase, ref control.windGustStrengthPhase); Override(windGustStrengthVariancePeriod, ref control.windGustStrengthVariancePeriod); Override(windGustInnerCosScale, ref control.windGustInnerCosScale); // Grass Flutter Override(windFlutterStrength, ref control.windFlutterStrength); Override(windFlutterGustStrength, ref control.windFlutterGustStrength); Override(windFlutterGustStrengthOffset, ref control.windFlutterGustStrengthOffset); Override(windFlutterGustStrengthScale, ref control.windFlutterGustStrengthScale); Override(windFlutterGustVariancePeriod, ref control.windFlutterGustVariancePeriod); // Tree Base Override(windTreeBaseStrength, ref control.windTreeBaseStrength); Override(windTreeBaseStrengthOffset, ref control.windTreeBaseStrengthOffset); Override(windTreeBaseStrengthPhase, ref control.windTreeBaseStrengthPhase); Override(windTreeBaseStrengthVariancePeriod, ref control.windTreeBaseStrengthVariancePeriod); // Tree Gust Override(windTreeGustStrength, ref control.windTreeGustStrength); Override(windTreeGustStrengthOffset, ref control.windTreeGustStrengthOffset); Override(windTreeGustStrengthPhase, ref control.windTreeGustStrengthPhase); Override(windTreeGustStrengthVariancePeriod, ref control.windTreeGustStrengthVariancePeriod); Override(windTreeGustInnerCosScale, ref control.windTreeGustInnerCosScale); // Tree Flutter Override(windTreeFlutterStrength, ref control.windTreeFlutterStrength); Override(windTreeFlutterGustStrength, ref control.windTreeFlutterGustStrength); Override(windTreeFlutterGustStrengthOffset, ref control.windTreeFlutterGustStrengthOffset); Override(windTreeFlutterGustStrengthScale, ref control.windTreeFlutterGustStrengthScale); Override(windTreeFlutterGustVariancePeriod, ref control.windTreeFlutterGustVariancePeriod); }