This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" > | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
@page { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Contributed By Shashank Kumar | |
def blockdivision0excel(request): | |
print("ByShashank") | |
# This is the base code to set the top parameters | |
gmcc = request.GET.get('gmcc') | |
date = request.GET.get('date') | |
wo = request.GET.get('won') | |
insp = request.GET.get('insp') | |
response = HttpResponse(content_type='application/vnd.ms-excel') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load static %} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>DLW Login</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate_excel_HPPE14152(request): | |
print("ByShashank") | |
# This is the base code to set the top parameters | |
asn = request.GET.get('asn') | |
date = request.GET.get('date') | |
response = HttpResponse(content_type='application/vnd.ms-excel') | |
response['Content-Disposition'] = 'attachment; filename="my_excel_file.xls"' | |
#Setting up the Styles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
.header { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html' %} {% block content %} {% load static %} | |
<style> | |
.modal-lg { | |
max-width: 48%; | |
} | |
.modal.left .modal-dialog, | |
.modal.right .modal-dialog { | |
position: fixed; | |
margin: auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dlw.views import * | |
import dlw.views.globals as g | |
import base64 | |
from Crypto.Cipher import AES | |
from Crypto.Util.Padding import pad,unpad | |
from django.contrib.auth.hashers import make_password, check_password | |
import datetime | |
''' ---------Start Login New Code -------''' | |
def encrypt(raw): | |
raw = pad(raw.encode(),16) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import JsonResponse | |
import json | |
@csrf_exempt | |
def generate_pdf_Inspection_report(request): | |
jsonData = request.POST.get('jsonData') | |
# Parse the JSON string into a Python object | |
data = json.loads(jsonData) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
.header { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create product | |
export const createProduct = async (req, res) => { | |
const { | |
title, | |
description, | |
price, | |
discountedPrice, | |
discountPercent, | |
quantity, | |
brand, |
OlderNewer