Exemplo n.º 1
0
        public ActionResult Create()
        {
            ViewBag.Title = "Create";
            QCParameters QC = new QCParameters();

            QC.QCRefNo = "QC/" + DatabaseCommonRepository.GetNextReferenceNo(typeof(QCParameters).Name);
            dropdown();
            return(View(QC));
        }
Exemplo n.º 2
0
        public ActionResult Create()

        {
            ViewBag.Title = "Create";
            SalesTarget Salestarget = new SalesTarget();

            Salestarget.SalesTargetRefNo = "ST/" + DatabaseCommonRepository.GetNextReferenceNo(typeof(SalesTarget).Name);// new SalesTargetRepository().GetRefNo(Salestarget);
            dropdown();
            return(View(Salestarget));
        }
        public ActionResult CreateRequest(int Code = 0)
        {
            string internalId = "";

            internalId = DatabaseCommonRepository.GetNextReferenceNo(typeof(CustomerReceipt).Name);

            ViewBag.Title = "Create";
            FillCustomer();
            FillSaleOrder(Code);
            FillJobCard(Code);
            FillSalesInvoice(Code);
            //FillSO();
            //FillJC();
            //FillSI();
            return(View("Create", new CustomerReceipt {
                CustomerReceiptDate = DateTime.Today, CustomerReceiptRefNo = "CR/" + internalId
            }));
        }