Pastebin

factorhawk

factorhawk from Pastebin

Factorhawk Pastebin Factor hawk login paste
    
        @model OTR.Portal.Web.Models.InvoiceDetailModel
@using FactorHawk.Common

@{
    Layout = null;
}

Invoice Detail
Customer @(Html.DevExtreme().SelectBox() .ID("ddlCustomer") .DataSource(d => d.Mvc() .Controller("DropDownList") .LoadAction("GetDropdownList") .LoadParams(new {listType = DropDownListType.Customer, clientPKey = 0}) .Key("PKey")) .DataSourceOptions((o) => o.Paginate(true).PageSize(15) .Sort(s => s.AddSorting("Name"))) .DisplayExpr("Name") .ValueExpr("PKey") //.OnValueChanged("onCustomerChange") .SearchEnabled(true) .SearchMode(DropDownSearchMode.StartsWith) .ShowClearButton(true) )
Shipper @(Html.DevExtreme().CheckBox() .ID("Shipper") )
Invoice # @(Html.DevExtreme().TextBox() .ID("InvoiceNo") .Value(Model.InvoiceModel.InvoiceNo) )
Invoice Date @(Html.DevExtreme().DateBox() .ID("InvoiceDate") .Value(DateTime.Today))
Invoice Terms: @(Html.DevExtreme().SelectBox() .ID("ddlTerm") .DataSource(d => d.Mvc() .Controller("Transaction") .LoadAction("GetTerm") .LoadParams(new {termPKey = Model.InvoiceModel.TermPKey}) .Key("PKey")) .DisplayExpr("Description") .ValueExpr("PKey") .Value(Model.InvoiceModel.TermPKey) .DeferRendering(false) .ReadOnly(true) )
PO #: @(Html.DevExtreme().TextBox() .ID("InvoicePo") .Value(Model.InvoiceModel.PoNumber) )
Status @(Html.DevExtreme().SelectBox() .ID("ddlStatus") .DataSource(d => d.Mvc() .Controller("Transaction") .LoadAction("GetStatusDropdown") .LoadParams(new {invoiceId = Model.InvoiceModel.PKey}) .Key("Id")) .ValueExpr("Id") .DisplayExpr("Name") .Value(Model.InvoiceModel.Status) .DeferRendering(false) )
Customer Info:
@(Html.Raw($"{Model.CustomerModel.Name}
{Model.CustomerModel.Address}
{Model.CustomerModel.City}, {Model.CustomerModel.State} {Model.CustomerModel.Zip}
contact: {Model.CustomerModel.Contact}
email: {Model.CustomerModel.Email}
phone:{Model.CustomerModel.Phone}; fax: {Model.CustomerModel.Fax}
billing: {(Model.CustomerModel.Billing > 0 ? Model.CustomerModel.Billing.ToString() : string.Empty)}"))