/// <summary>
 /// makes a change in 'raktmennyiseg' table, undelet a record
 /// this nullifies the value of who-deleted in 'termek_metorles' field
 /// </summary>
 /// <param name="index">the record index</param>
 public void setUndeleteRecProdQuantity(string index, string stripping)
 {
     try
     {
         modelQuantities = new ProductsModelStrippingTable(dbci, parent);
         modelQuantities.renewProdQuantityRecord(index, stripping, userId);
     }
     catch (Exception e)
     {
         errorHandle(e.Message);
     }
 }
 /// <summary>
 /// makes a change in 'raktmennyiseg' table, modify a record
 /// by the original indexer and original stripping
 /// the indexer mustn't changes!
 /// </summary>
 /// <param name="row">the content of record with new parameters</param>
 /// <param name="oldStripping">the old stripping of the record</param>
 public void setModifyRecProdQuantity(ProductStrippingPart row, string oldStripping)
 {
     try
     {
         modelQuantities = new ProductsModelStrippingTable(dbci, parent);
         modelQuantities.modifyProdQuantityRecord(row, oldStripping, userId);
     }
     catch (Exception e)
     {
         errorHandle(e.Message);
     }
 }
 /// <summary>
 /// makes a change in 'raktmennyiseg' table, creates a new record
 /// </summary>
 /// <param name="row">the recors is needed to create</param>
 public void setNewRecProdQuantity(ProductStrippingPart row)
 {
     try
     {
         modelQuantities = new ProductsModelStrippingTable(dbci, parent);
         modelQuantities.createNewProdQuantityRecord(row, userId);
     }
     catch (Exception e)
     {
         errorHandle(e.Message);
     }
 }
示例#4
0
 /// <summary>
 /// makes a change in 'raktmennyiseg' table, undelet a record
 /// this nullifies the value of who-deleted in 'termek_metorles' field
 /// </summary>
 /// <param name="index">the record index</param>
 public void setUndeleteRecProdQuantity(string index, string stripping)
 {
     try
     {
         modelQuantities = new ProductsModelStrippingTable(dbci, parentMain);
         modelQuantities.renewProdQuantityRecord(index, stripping, userId);
     }
     catch (ErrorServiceRenewRecord e)
     {
         throw new ErrorServiceProd(e.Message);
     }
 }
示例#5
0
 /// <summary>
 /// makes a change in 'raktmennyiseg' table, modify a record
 /// by the original indexer and original stripping
 /// the indexer mustn't changes!
 /// </summary>
 /// <param name="row">the content of record with new parameters</param>
 /// <param name="oldStripping">the old stripping of the record</param>
 public void setModifyRecProdQuantity(ProductStrippingPart row, string oldStripping)
 {
     try
     {
         modelQuantities = new ProductsModelStrippingTable(dbci, parentMain);
         modelQuantities.modifyProdQuantityRecord(row, oldStripping, userId);
     }
     catch (ErrorServiceUpdateRecord e)
     {
         throw new ErrorServiceProd(e.Message);
     }
 }
示例#6
0
 /// <summary>
 /// makes a change in 'raktmennyiseg' table, creates a new record
 /// </summary>
 /// <param name="row">the recors is needed to create</param>
 public void setNewRecProdQuantity(ProductStrippingPart row)
 {
     try
     {
         modelQuantities = new ProductsModelStrippingTable(dbci, parentMain);
         modelQuantities.createNewProdQuantityRecord(row, userId);
     }
     catch (ErrorServiceNewRecord e)
     {
         throw new ErrorServiceProd(e.Message);
     }
 }
 public bool checkBarcodeUniquity(string text)
 {
     modelQuantities = new ProductsModelStrippingTable(dbci, parent);
     return(modelQuantities.checkBarcodeUniquity(text));
 }