Esempio n. 1
0
 public void settaskBase(List <DefectBase> defects)
 {
     foreach (DefectBase d in defects)
     {
         Defect dstore = new Defect(d.ID);
         dstore.FromAnotherObject(d);
         if (dstore.IsModified())
         {
             dstore.Store();
         }
     }
 }
Esempio n. 2
0
	public string settask(Defect d)
	{
		CurrentContext.Validate();
		Defect dstore = new Defect(d.ID);
		if (d.ORDER != dstore.ORDER)
		{
			//copy object specifics for multiple savings from same page: only order change should be processed.
			d.BACKORDER = dstore.BACKORDER;
		}
		dstore.FromAnotherObject(d);
		dstore.REQUESTRESET = d.REQUESTRESET;
		if (dstore.IsModified())
		{
			dstore.Store();
		}
		return "OK";
	}