Exemple #1
0
 public LabelSettingModel GetLabelData(int ItemId)
 {
     try
     {
         LabelSetting labelData = _labelSettingRepository.GetLabelData(ItemId);
         if (labelData != null)
         {
             return(new LabelSettingModel(labelData.Id, labelData.LabelSettingCode, labelData.ItemId, labelData.PrintItemCode, labelData.PrintItemDetail, labelData.PrintUnitMeasure, labelData.PrintItemPrice, labelData.PrintBarCode, labelData.BarCodeHeight, labelData.LabelSheet, labelData.TotalNoOfPrints, labelData.StartRow, labelData.StartColumn));
         }
         LabelSettingModel newLabelData = new LabelSettingModel();
         newLabelData.ItemId = ItemId;
         return(newLabelData);
     }
     catch (Exception ex)
     {
         fault.Result       = false;
         fault.ErrorMessage = "Error in GetLabelData method";
         fault.ErrorDetails = ex.ToString();
         throw new FaultException <FaultData>(fault);
     }
 }
Exemple #2
0
        public LabelSettingModel GetLabelData(int ItemId)
        {
            LabelSetting labelData = _labelSettingRepository.GetLabelData(ItemId);

            return(new LabelSettingModel(labelData.Id, labelData.LabelSettingCode, labelData.ItemId, labelData.PrintItemCode, labelData.PrintItemDetail, labelData.PrintUnitMeasure, labelData.PrintItemPrice, labelData.PrintBarCode, labelData.BarCodeHeight));
        }