示例#1
0
        private AssetsModel InitializeAssetModel()
        {
            AssetsModel assetsModel = new AssetsModel()
            {
                PropertyTag = txt_property_tag.Text.ToUpper(),
                EmployeeId  = _employee_id,
                Items       = new Items()
                {
                    Id        = _item_id,
                    HasSerial = Convert.ToInt32(_item_has_serial)
                },
                Serial = new Serial()
                {
                    Id = _item_serial
                },
                Quantity     = int.Parse(numberic_up_down_quantity.Value.ToString()),
                Price        = Convert.ToDecimal(cb_price_list.SelectedValue.ToString()),
                DateAcquired = Convert.ToDateTime(dt_picker_date_acquired.Value)
            };

            return(assetsModel);
        }
示例#2
0
 public AssetCreator(AssetsModel assetModel)
 {
     _connection = new Connection();
     _assetModel = assetModel;
 }
 public AssetsModelDataValidator(AssetsModel assetModel)
 {
     _connection = new Connection();
     _assetModel = assetModel;
 }