public SalesReturnController(ICommonPVVMAppService _CommonVmService, ILocationAppService _locationService, ISubsidiaryInfoAppService _subsidiaryInfoService, IItemInfoAppService _itemInfoService, ICurrentStockAppService _currentStockService, ISalesMainAppService _SalesMainService, ISalesDetailAppService _SaleDetailService, IEmployeeAppService _EmployeeService, IBranchAppService _branchService, IJarnalVoucherAppService _jarnalVoucherService, ISysSetAppService _sysSetService, IVchrSetAppService _vchrSetService, ILotDTAppService _lotDtService, ICostLedgerAppService CostLedgerAppService, IDefACAppService _defACService, IUnitAppService _unitService, ISaleRetMainAppService _saleRetMainService, IIssueMainAppService _issueMainService, ITransactionLogAppService _transactionLogService, ISaleRetDetailAppService _saleRetDetailService, IReceiveAppService _receiveMainService, IReceiveDetailsAppService _receiveDetailService) { this._CommonVmService = _CommonVmService; this._locationService = _locationService; this._subsidiaryInfoService = _subsidiaryInfoService; this._itemInfoService = _itemInfoService; this._currentStockService = _currentStockService; this._SalesMainService = _SalesMainService; this._SaleDetailService = _SaleDetailService; this._EmployeeService = _EmployeeService; this._jarnalVoucherService = _jarnalVoucherService; this._sysSetService = _sysSetService; this._vchrSetService = _vchrSetService; this._lotDtService = _lotDtService; this.CostLedgerAppService = CostLedgerAppService; this._defACService = _defACService; this._saleRetMainService = _saleRetMainService; this._branchService = _branchService; this._issueMainService = _issueMainService; this._transactionLogService = _transactionLogService; this._saleRetDetailService = _saleRetDetailService; this._receiveMainService = _receiveMainService; this._receiveDetailService = _receiveDetailService; this._unitService = _unitService; }
public VM_4P3Controller(IItemInfoAppService _itemInfoService, IUnitAppService _unitService, ITransactionLogAppService _transactionLogService, ISysSetAppService _sysSetService) { this._itemInfoService = _itemInfoService; this._unitService = _unitService; this._transactionLogService = _transactionLogService; this._sysSetService = _sysSetService; }
public GetAllUnitResponsType(IUnitAppService unitAppService) { //Field(h => h.PageSize, type: typeof(IntGraphType)).Description("The Page Size of the response."); //Field(h => h.PageNumber, type: typeof(IntGraphType)).Description("The Page Number of the response."); Field <ListGraphType <UnitType> >( "units", resolve: context => { return(unitAppService.getAllUnit()); } ); }
public DepositToBankController( ICashOperationAppService _CashOperationService, ICashReceiptAppService _cashReceiptAppService, IWithdrawAppService _withdrawService, IExpenseAppService _ExpenseService, IDepositToBankAppService _DepositToBankService, IEmployeeAppService _EmployeeService, ISubsidiaryInfoAppService _subsidiaryService, IItemInfoAppService _ItemService, INewChartAppService _NewChartService, ILocationAppService _LocationService, IUnitAppService _UnitService, ITransactionLogAppService _transactionLogService, IBankOperationAppService _BankOperationService, IJarnalVoucherAppService _jarnalVoucherService, ISysSetAppService _sysSetService, IOpnBalAppService _OpnBalService, IPaymentAppService _paymentService, IHORemitAppService _HORemitService, IAcBRAppService _AcBrService, IBankReceiptAppService _BankReceiptAppService, IGsetAppService _gsetService) { this._CashOperationService = _CashOperationService; this._cashReceiptAppService = _cashReceiptAppService; this._withdrawService = _withdrawService; this._ExpenseService = _ExpenseService; this._DepositToBankService = _DepositToBankService; this._subsidiaryService = _subsidiaryService; this._NewChartService = _NewChartService; this._EmployeeService = _EmployeeService; this._subsidiaryService = _subsidiaryService; this._ItemService = _ItemService; this._LocationService = _LocationService; this._UnitService = _UnitService; this._transactionLogService = _transactionLogService; this._jarnalVoucherService = _jarnalVoucherService; this._sysSetService = _sysSetService; this._OpnBalService = _OpnBalService; this._paymentService = _paymentService; this._HORemitService = _HORemitService; this._BankReceiptAppService = _BankReceiptAppService; this._BankOperationService = _BankOperationService; this._gsetService = _gsetService; this._AcBrService = _AcBrService; }
public ItemController(IUnitAppService _UnitService, IItemTypeAppService _ItemService, IItemInfoAppService _ItemInfoService, ITransactionLogAppService _transactionLogServic, ITransactionLogAppService _transactionLogService, IItemListAppService _ItemListService, IvuItemInfoAppService _vuItemInfoAppService, ICommonPVVMAppService _CommonVmService, ISysSetAppService _sysSetService, ICostLedgerAppService CostLedgerAppService, ILocationAppService _locationService, IBranchAppService _branchSerive) { this._UnitService = _UnitService; this._ItemTypeService = _ItemService; this._ItemInfoService = _ItemInfoService; this._transactionLogService = _transactionLogService; this._ItemListService = _ItemListService; this._vuItemInfoAppService = _vuItemInfoAppService; this._CommonVmService = _CommonVmService; this._sysSetService = _sysSetService; this.CostLedgerAppService = CostLedgerAppService; this._locationService = _locationService; this._branchSerive = _branchSerive; }
public OrderMutation(IUnitAppService unitAppService) { Name = "OrderMuatation"; #region Unit Field <AddNewUnitResponseType>( "addUnit", Description = "This field adds new product", arguments: new QueryArguments( new QueryArgument <NonNullGraphType <UnitInputType> > { Name = "unit" } ), resolve: context => { var unitInput = context.GetArgument <AddNewUnitRequest>(Name = "unit"); //return product.Create(productInput); return(unitAppService.addNewUnit(unitInput)); }); #endregion }
public UnitController(IUnitAppService unitAppService) { _unitAppService = unitAppService; }
public UnitController(IUnitAppService UnitAppService) { _UnitAppService = UnitAppService; }
public AddNewUnitResponseType(IUnitAppService unitAppService) { Field(h => h.Message); Field(h => h.Status); //Field(h => h.Result, type: typeof(UnitType)); }
public UnitController(IUnitAppService dataRepository) { _dataRepository = dataRepository; }
public UnitAppServiceTests() { _unitAppService = GetRequiredService <IUnitAppService>(); }
public CreateModalModel(IUnitAppService service) { _service = service; }
public EditModalModel(IUnitAppService service) { _service = service; }
public OrderQuery(IUnitAppService unitAppService) { Name = "Query"; Field <GetAllUnitResponsType>( "getAllUnits", arguments: new QueryArguments( new QueryArgument <NonNullGraphType <IntGraphType> > { Name = "pageSize", Description = "pageSize" }, new QueryArgument <NonNullGraphType <IntGraphType> > { Name = "pageNumber", Description = "pageNumber" } ), resolve: context => { var pageSize = context.GetArgument <int>("pageSize"); var pageNumber = context.GetArgument <int>("pageNumber"); return(unitAppService.getAllUnit()); } ); Field <ListGraphType <UnitType> >( "getAllUnitsa", //arguments: new QueryArguments( // new QueryArgument<NonNullGraphType<StringGraphType>> { Name = "id", Description = "id of the unit" } //), resolve: context => { return(unitAppService.getAllUnit()); } ); //Field<ListGraphType<UnitType>>( // "getUnitById", // //arguments: new QueryArguments( // // new QueryArgument<NonNullGraphType<StringGraphType>> { Name = "id", Description = "id of the unit" } // //), // resolve: context => // { // var id = context.GetArgument<int>("id"); // Request r = new Request(1,2,3,4.) // Appservice.search(r) // UnitResponse u = new Unit(1, new Name("Unit " + 1)); // return u; // } //); //Field<ListGraphType<ProductType>>( // "getAllUnits", // Description = "This field returns all units", // resolve: context => // { // List<Unit> lst = new List<Unit>(); // for (uint i = 0; i < 20; i++) // { // Unit u = new Unit(new Identity(i), new Name("Unit " + i)); // lst.Add(u); // } // return lst; // } //); Field <ProductType>( "product", arguments: new QueryArguments( new QueryArgument <NonNullGraphType <StringGraphType> > { Name = "id", Description = "id of the product" } ), resolve: context => { var id = context.GetArgument <int>("id"); List <Identity> lst = new List <Identity>(); for (uint i = 0; i < 20; i++) { lst.Add(i); } //Product u = new Product((uint)id, new Name("Product " + id), lst); return(new object()); } ); }