Example #1
0
        public async Task <ActionResult> Edit([Bind(Include = "SlNo,InvoiceNo,ProductID,LotNo,SalePrice,SaleQty,DisAomuntPerItems,ReturnQty,CostPrice,ReferenceInvoice,BrId")] T_SALES_DTL t_SALES_DTL)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_SALES_DTL).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_SALES_DTL));
        }
Example #2
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,BrId,UserId,UserName,EmailID,Password,ConfirmPassword,CreateDate,UpdateDate,IsRemoved,UserFullName,PhoneNo")] User user)
        {
            if (ModelState.IsValid)
            {
                db.Entry(user).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(user));
        }
        public async Task <ActionResult> Edit([Bind(Include = "CustDueCollectionID,BrId,CustomerID,ReceiveAmount,CRDate,IsRemoved,IUser,EUser,IDate,EDate")] T_CustomerDueCollection t_CustomerDueCollection)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_CustomerDueCollection).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_CustomerDueCollection));
        }
Example #4
0
        public async Task <ActionResult> Edit([Bind(Include = "UnitID,UnitName,IsRemoved,IUser,EUser,IDate,EDate")] T_UNIT t_UNIT)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_UNIT).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_UNIT));
        }
Example #5
0
        public async Task <ActionResult> Edit([Bind(Include = "MenuHeadWebID,MenuHeadWebName,Priority,DivID")] MenuHeadWeb menuHeadWeb)
        {
            if (ModelState.IsValid)
            {
                db.Entry(menuHeadWeb).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(menuHeadWeb));
        }
Example #6
0
        public async Task <ActionResult> Edit([Bind(Include = "ReceiveId,ReceiveDate,ReceiveNo,InvoiceNo,SupplierID,ApprovedStatus,GrossAmount,Discount,CashPaid,DueAmount,Type,IsRemoved,IUSER,EUSER,IDAT,EDAT,BrId")] T_GRN_MST t_GRN_MST)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_GRN_MST).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_GRN_MST));
        }
Example #7
0
        public async Task <ActionResult> Edit([Bind(Include = "SPId,SupplierId,TrnDate,ReceivedAmount,TrnType,Due,SPDescription,Post,IUser,EUser,IDate,EDate,BrId")] T_SupplierPayment t_SupplierPayment)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_SupplierPayment).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_SupplierPayment));
        }
Example #8
0
        public async Task <ActionResult> Edit([Bind(Include = "PageId,SubMenuHeadID,MenuHeadID,PageName,URL,CreateDate,LastUpdateDate,IsRemoved,PageTitle,LiID")] MenuPageWeb menuPageWeb)
        {
            if (ModelState.IsValid)
            {
                db.Entry(menuPageWeb).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(menuPageWeb));
        }
Example #9
0
        public async Task <ActionResult> Edit([Bind(Include = "ExpId,ExpDescription,ExpAmount,ExpDate,ExpBy,Post,IUser,EUser,IDate,EDate,BrId")] T_Expenses t_Expenses)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_Expenses).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_Expenses));
        }
Example #10
0
        public async Task <ActionResult> Edit([Bind(Include = "SupplierID,SupplierName,Address,PhoneNo,Balance,IsRemoved,IUser,EUser,IDate,EDate")] T_Supplier t_Supplier)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_Supplier).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_Supplier));
        }
Example #11
0
        public async Task <ActionResult> Edit([Bind(Include = "ReceiveDetailId,ReceiveId,CategoryID,SubCategoryID,ProductID,LotNo,UnitId,Qty,CostPrice,ReturnQty,SalePrice,BrId")] T_GRN_DTL t_GRN_DTL)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_GRN_DTL).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_GRN_DTL));
        }
Example #12
0
        public async Task <ActionResult> Edit([Bind(Include = "ProductID,CategoryID,SubCategoryID,PBarcode,PName,CostPrice,SalePrice,Discount,ReorderLevel,Manufacture,UnitID,IUser,EUser,IDate,EDate,IsRemoved,SalingPrice")] T_PROD t_PROD)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_PROD).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_PROD));
        }
Example #13
0
        public async Task <ActionResult> Edit([Bind(Include = "PaymentMethod_ID,PaymentMethod_Name")] Payment_Method payment_Method)
        {
            if (ModelState.IsValid)
            {
                db.Entry(payment_Method).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(payment_Method));
        }
Example #14
0
        public async Task <ActionResult> Edit([Bind(Include = "DamageId,CategoryID,SubCategoryID,ProductID,LotNo,UnitId,Qty,Remarks,IsRemoved,IUSER,EUSER,IDAT,EDAT,BrId")] T_DAMAGE t_DAMAGE)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_DAMAGE).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_DAMAGE));
        }
Example #15
0
        public async Task <ActionResult> Edit([Bind(Include = "SlNo,InvoiceNo,SalesDate,SType,SubTotal,Vat,GrossAmount,Discount,DiscountTk,ReceiveAmount,DueCollection,CashPaid,CashChange,CustomerID,NetAmount,CustName,CustAddress,CustPhone,Description,IUSER,EUSER,IDAT,EDAT,BrId")] T_SALES_MST t_SALES_MST)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_SALES_MST).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_SALES_MST));
        }
Example #16
0
        public async Task <ActionResult> Edit([Bind(Include = "GrantID,BrId,UserID,MenuHeadID,SubMenuHeadID,PageID,CanView")] MenuPermissionWeb menuPermissionWeb)
        {
            if (ModelState.IsValid)
            {
                db.Entry(menuPermissionWeb).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(menuPermissionWeb));
        }
Example #17
0
        public async Task <ActionResult> Edit([Bind(Include = "BankId,BankAccName,BankAccNo,OpenDate,Balance,BrId")] BankInfo bankInfo)
        {
            if (ModelState.IsValid)
            {
                db.Entry(bankInfo).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(bankInfo));
        }
Example #18
0
        public async Task <ActionResult> Edit([Bind(Include = "CustomerID,DeptId,Name,Address,Phone,DueAdvance,IsRemoved,IUser,EUser,IDate,EDate,DueLimit,BrId")] T_Customer t_Customer)
        {
            if (ModelState.IsValid)
            {
                db.Entry(t_Customer).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(t_Customer));
        }
Example #19
0
        public async Task <ActionResult> Edit([Bind(Include = "DeptId,Dept_Name")] Department department)
        {
            if (ModelState.IsValid)
            {
                db.Entry(department).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(department));
        }
Example #20
0
        public async Task <ActionResult> Edit([Bind(Include = "CmpId,cmpName,BrId,BrName,cmpAddressLine1,cmpAddressLine2,ContactNo,Email,Web,OpenDate,TrnDate,FStartDate,FEndDate,CurrentDate,Logo,Vat,Vat_Area,Vat_RegiNo,Bill_Invoice_Print_Type")] CompanyInfo companyInfo)
        {
            if (ModelState.IsValid)
            {
                db.Entry(companyInfo).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(companyInfo));
        }