public static MSTInvoiceBillingReportingViewModel GenerateMSTInvoiceBillingReportingViewModel()
        {
            var      yr    = DateTime.Today.Year;
            var      mth   = DateTime.Today.Month;
            DateTime today = DateTime.Today;

            return(new MSTInvoiceBillingReportingViewModel
            {
                BillingType = ProformaInvoiceResource.BillingTypeMSTProformaInvoice,
                //BillingDateFrom = DateTime.ParseExact("01 Jan 2015", ConfigResource.FormatDate, System.Globalization.CultureInfo.InvariantCulture),
                //BillingDateTo = DateTime.ParseExact("30 Jan 2015", ConfigResource.FormatDate, System.Globalization.CultureInfo.InvariantCulture),
                BillingDateFrom = new DateTime(yr, mth, 1),
                BillingDateTo = new DateTime(today.Year, today.Month, DateTime.DaysInMonth(today.Year, today.Month)),
                BillingTypeList = GeneralFormHelper.GenerateKendoDropDownListViewModel("GetSoldToPartyAsync", "SAPMasterData", "SoldToPartyName", "SoldToPartyID", "0"),
                SoldToPartyFrom = GeneralFormHelper.GenerateKendoDropDownListViewModel("GetSoldToPartyJson", "SAPMasterData"),
                SelectedDocuments = new SelectedDocumentViewModel
                {
                    IsActiveDocumentSelected = true
                }
            });
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static MainProformaInvoiceViewModel GenerateMainProformaInvoiceViewModel()
        {
            var      yr    = DateTime.Today.Year;
            var      mth   = DateTime.Today.Month;
            DateTime today = DateTime.Today;

            return(new MainProformaInvoiceViewModel
            {
                BillingDateFrom = new DateTime(yr, mth, 1),
                BillingDateTo = new DateTime(today.Year, today.Month, DateTime.DaysInMonth(today.Year, today.Month)),
                BillingType = ProformaInvoiceResource.BillingTypeMSTProformaInvoice,
                BillingRun =
                    GeneralFormHelper.GenerateKendoDropDownListViewModel("GetBillingRunJson",
                                                                         "BillingMasterData"),
                SoldToPartyFrom =
                    GeneralFormHelper.GenerateKendoDropDownListViewModel("GetSoldToPartyJson", "SAPMasterData"),
                SelectedDocuments = new SelectedDocumentViewModel
                {
                    IsActiveDocumentSelected = true
                }
            });
        }
示例#3
0
 private static DropDownListViewModel GenerateRoutingStatusListViewModel()
 {
     return(GeneralFormHelper.GenerateDropDownListViewModel(SharedResource.NotStarted, true,
                                                            SharedResource.Completed, SharedResource.InProgress, SharedResource.NotStarted,
                                                            SharedResource.RejectedBySa, SharedResource.RejectedByDivision));
 }