示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }