Esempio n. 1
0
    def __init__(self, autoid=None, snid=None, parent=None):
        super(EditSaleProdMudule, self).__init__(parent)
        self.setupUi(self)
        if '53' not in user.powers:
            self.close()
        if user.powers['53'] == 0:
            self.close()
        self.power = '{:03b}'.format(user.powers['53'])
        if self.power[1] == '0':
            self.pushButton_accept.setVisible(False)
            self.pushButton_cancel.setVisible(False)

        self.autoid = autoid
        self.snid = snid
        self.SC = SaleController()
        self.PC = ProductController()
        self.ori_detail = dict()
        self.new_detail = dict()
        row = ('autoid', 'prodid', 'prodname', 'spec', 'package')
        key = ('prodid', 'prodname', 'commonname', 'inputcode')
        row_name = ("id", "产品编号", "产品名称", "含量规格", "包装规格")
        self.lineEdit_product.setup('Productdictionary', row, key, row_name,
                                    None, 620, 190)
        self.set_validator()
        if self.autoid is not None:
            self.get_detail()
Esempio n. 2
0
 def __init__(self):
     self.SC = StuffController()
     self.SLC = SaleController()
     self.SP = SupplyerController()
     self.WM = WarehouseModel()
     self.WC = WorkshopController()
     self.PC = ProductController()
 def __init__(self, autoid=None, parent=None):
     super(EditSaleOrderMudule, self).__init__(parent)
     self.setupUi(self)
     if '53' not in user.powers:
         self.close()
     if user.powers['53'] == 0:
         self.close()
     self.power = '{:03b}'.format(user.powers['53'])
     if self.power[1] == '0':
         self.pushButton_accept.setVisible(False)
         self.pushButton_cancel.setVisible(False)
     self.autoid=autoid
     self.SC = SaleController()
     self.ori_detail = dict()
     self.new_detail = dict()
     row = ('autoid', 'clientid', 'clientname', 'address')
     key = ('clientid', 'clientname', 'inputcode')
     row_name = ("id", "客户编号", "客户名称", "客户地址")
     self.lineEdit_client.setup('Client', row, key, row_name, None, 550, 290)
     if self.autoid is None:
         self.set_paperno()
         self.dateEdit_saledate.setDate(user.now_date)
         self.dateEdit_deliverydate.setDate(user.now_date)
     else:
         self.get_detail()
     self.set_conveyance_list()
     self.set_paymethod_list()
Esempio n. 4
0
 def __init__(self, autoid, parent=None):
     super(SaleOrderModule, self).__init__(parent)
     self.setupUi(self)
     self.SC = SaleController()
     self.WC = WarehouseController()
     self.WSC = WorkshopController()
     self.autoid = autoid
     self.get_order_list()
     self.get_product_list()
Esempio n. 5
0
 def __init__(self, parent=None):
     super(SaleOrderListModule, self).__init__(parent)
     self.setupUi(self)
     if '53' not in user.powers:
         self.close()
     if user.powers['53'] == 0:
         self.close()
     self.power = '{:03b}'.format(user.powers['53'])
     self.SC = SaleController()
     self.WC = WarehouseController()
     self.WSC = WorkshopController()
     self.groupBox.setVisible(False)
     self.snid = 0
     self.get_order_list()
Esempio n. 6
0
    def __init__(self, parent=None):
        super(QrcodeoutputModule, self).__init__(parent)
        self.setupUi(self)
        if '59' not in user.powers:
            self.close()
        if user.powers['59'] == 0:
            self.close()
        self.power = '{:03b}'.format(user.powers['59'])

        self.WC = WarehouseController()
        self.PC = ProductController()
        self.SC = SystemController()
        self.SLC = SaleController()
        self.orderlist = dict()
        # 获取二维码信息
        self.get_order_list()
Esempio n. 7
0
 def __init__(self, parent=None):
     super(ClientListModule, self).__init__(parent)
     self.setupUi(self)
     if '54' not in user.powers:
         self.close()
     if user.powers['54'] == 0:
         self.close()
     self.power = '{:03b}'.format(user.powers['54'])
     self.SC = SaleController()
     self.IC = ImageController()
     self.kind_list = []
     self.curremt_kind = 0
     self.treeWidget_kind.hideColumn(1)
     self.treeWidget_detail.hideColumn(0)
     self.get_kind_list()
     self.get_client_list()
Esempio n. 8
0
 def __init__(self, autoid=None, parent=None):
     super(EditClientDetailModule, self).__init__(parent)
     self.setupUi(self)
     if '54' not in user.powers:
         self.close()
     if user.powers['54'] == 0:
         self.close()
     self.power = '{:03b}'.format(user.powers['54'])
     if self.power[1] == '0':
         self.pushButton_accept.setVisible(False)
         self.pushButton_cancel.setVisible(False)
     self.autoid = autoid
     self.ori_detail = dict()
     self.new_detail = dict()
     self.current_img = object
     self.current_page = object
     self.province_list = []
     self.city_list = []
     self.county_list = []
     self.province_id = ''
     self.city_id = ''
     self.county_id = ''
     self.qyname = ''
     self.SC = SaleController()
     self.IC = ImageController()
     self.treeWidget_imagenamelist.hideColumn(0)
     self.treeWidget_imagenamelist.hideColumn(1)
     # 自动缩放
     self.label_image.setScaledContents(True)
     return_row = ('parentid', 'autoid', 'kindname')
     condition_key = {'autoid', 'kindname', 'inputcode'}
     treeheader_name = ['parentid', '编号', '名称']
     condition = {'kind': 4}
     self.lineEdit_tstkind.setup('Treestructure',
                                 return_row,
                                 condition_key,
                                 treeheader_name,
                                 condition,
                                 treewidth=300)
     self.get_detail()
     self.get_province()
     if len(self.ori_detail):
         self.get_city(self.ori_detail['province'])
         self.get_county(self.ori_detail['city'])