コード例 #1
0
ファイル: ImpactLevelController.cs プロジェクト: ryanask/MRK
 public ActionResult ImpactPercentageEdit(ImpactRef impactRef)
 {
     if (ModelState.IsValid)
     {
         db.ImpactRefs.Attach(impactRef);
         db.ObjectStateManager.ChangeObjectState(impactRef, EntityState.Modified);
         db.SaveChanges();
         UpdateImpactLevelMoneyValues();
         return RedirectToAction("ImpactPercentage");
     }
     return View(impactRef);
 }
コード例 #2
0
ファイル: AskrindoModel.Designer.cs プロジェクト: ryanask/MRK
 /// <summary>
 /// Create a new ImpactRef object.
 /// </summary>
 /// <param name="impactRefId">Initial value of the ImpactRefId property.</param>
 /// <param name="maxMoney">Initial value of the MaxMoney property.</param>
 /// <param name="hQPct">Initial value of the HQPct property.</param>
 /// <param name="branch1Pct">Initial value of the Branch1Pct property.</param>
 /// <param name="branch2Pct">Initial value of the Branch2Pct property.</param>
 /// <param name="branch3Pct">Initial value of the Branch3Pct property.</param>
 /// <param name="bizUnitPct">Initial value of the BizUnitPct property.</param>
 /// <param name="supportingHQPct">Initial value of the SupportingHQPct property.</param>
 /// <param name="supportingBranchPct">Initial value of the SupportingBranchPct property.</param>
 /// <param name="supportingBizUnitPct">Initial value of the SupportingBizUnitPct property.</param>
 public static ImpactRef CreateImpactRef(global::System.Int32 impactRefId, global::System.Decimal maxMoney, global::System.Decimal hQPct, global::System.Decimal branch1Pct, global::System.Decimal branch2Pct, global::System.Decimal branch3Pct, global::System.Decimal bizUnitPct, global::System.Decimal supportingHQPct, global::System.Decimal supportingBranchPct, global::System.Decimal supportingBizUnitPct)
 {
     ImpactRef impactRef = new ImpactRef();
     impactRef.ImpactRefId = impactRefId;
     impactRef.MaxMoney = maxMoney;
     impactRef.HQPct = hQPct;
     impactRef.Branch1Pct = branch1Pct;
     impactRef.Branch2Pct = branch2Pct;
     impactRef.Branch3Pct = branch3Pct;
     impactRef.BizUnitPct = bizUnitPct;
     impactRef.SupportingHQPct = supportingHQPct;
     impactRef.SupportingBranchPct = supportingBranchPct;
     impactRef.SupportingBizUnitPct = supportingBizUnitPct;
     return impactRef;
 }
コード例 #3
0
ファイル: AskrindoModel.Designer.cs プロジェクト: ryanask/MRK
 /// <summary>
 /// Deprecated Method for adding a new object to the ImpactRefs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToImpactRefs(ImpactRef impactRef)
 {
     base.AddObject("ImpactRefs", impactRef);
 }