View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000624 | Склад | General | public | 2014-02-17 09:58 | 2014-04-28 14:56 |
| Reporter | ruslan | Assigned To | barry | ||
| Priority | urgent | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Summary | 0000624: +Склад - Справочник Товары - Карточка товара новый параметр Упаковки | ||||
| Description | ТЗ в файле. | ||||
| Tags | No tags attached. | ||||
|
|
|
|
|
DK_GOODSPACK.txt (3,260 bytes)
SET SQL DIALECT 3;
CREATE GENERATOR DK_GOODSPACK_ID;
CREATE TABLE DK_GOODSPACK (
ID INTEGER NOT NULL,
GDSID INTEGER NOT NULL,
NAME VARCHAR(40) NOT NULL,
QNT DOUBLE PRECISION NOT NULL,
BARCODE VARCHAR(20) NOT NULL,
DESCRIPTION VARCHAR(255) NOT NULL,
USERNAME VARCHAR(20),
LASTEDIT TIMESTAMP DEFAULT Current_TimeStamp
);
/******************************************************************************/
/*** Primary Keys ***/
/******************************************************************************/
ALTER TABLE DK_GOODSPACK ADD CONSTRAINT DK_GOODSPACK_PK PRIMARY KEY (ID);
/******************************************************************************/
/*** Foreign Keys ***/
/******************************************************************************/
ALTER TABLE DK_GOODSPACK ADD CONSTRAINT DK_GOODSPACK_FK FOREIGN KEY (GDSID) REFERENCES GOODS (ID);
/******************************************************************************/
/*** Triggers ***/
/******************************************************************************/
SET TERM ^ ;
/******************************************************************************/
/*** Triggers for tables ***/
/******************************************************************************/
/* Trigger: DK_GIFTCERTIFICATE_BI */
CREATE OR ALTER TRIGGER DK_GOODSPACK_BI FOR DK_GOODSPACK
ACTIVE BEFORE INSERT POSITION 0
as
begin
if (New.ID is Null) then New.ID = Gen_ID(DK_GOODSPACK_ID, 1);
end
^
CREATE OR ALTER TRIGGER DK_GOODSPACK_BU FOR DK_GOODSPACK
ACTIVE BEFORE UPDATE POSITION 0
as
begin
New.LastEdit = Current_TimeStamp;
end
^
SET TERM ; ^
/******************************************************************************/
/*** Descriptions ***/
/******************************************************************************/
COMMENT ON TABLE DK_GOODSPACK IS
'�������� �������';
/******************************************************************************/
/*** Fields descriptions ***/
/******************************************************************************/
COMMENT ON COLUMN DK_GOODSPACK.GDSID IS
'ID ������';
COMMENT ON COLUMN DK_GOODSPACK.NAME IS
'������������';
COMMENT ON COLUMN DK_GOODSPACK.QNT IS
'���������';
COMMENT ON COLUMN DK_GOODSPACK.BARCODE IS
'����-���';
COMMENT ON COLUMN DK_GOODSPACK.DESCRIPTION IS
'��������';
COMMENT ON COLUMN DK_GOODSPACK.USERNAME IS
'�� ����������';
COMMENT ON COLUMN DK_GOODSPACK.LASTEDIT IS
'���� / ���� ��������� ���������� ������';
/******************************************************************************/
/*** Privileges ***/
/******************************************************************************/
|
|
|
Вот таблица |
|
|
таблица mebl_ib5.zip |
|
|
stor32.zip |
|
|
1. Редактирование по двойному клику в гриде упаковок. 2. По генерации штрих-кода: - сделай чтоб впереди была цифра 5(чтоб не путать с товаром) - добавь возможность генерировать штрих-код не только при сохранении... т.к. могут возникнуть разные ситуации и для восстановления штрих-кода - механизма -нет. |
|
|
stor32.zip |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-02-17 09:58 | ruslan | New Issue | |
| 2014-02-17 09:58 | ruslan | File Added: Технические требования к механизму хранения и управления таблицей.doc | |
| 2014-02-26 16:39 | ruslan | File Added: DK_GOODSPACK.txt | |
| 2014-02-26 16:39 | ruslan | Note Added: 0001511 | |
| 2014-02-26 16:48 | barry | Note Added: 0001512 | |
| 2014-03-01 22:31 | barry | Note Added: 0001514 | |
| 2014-03-01 22:31 | barry | Status | new => resolved |
| 2014-03-01 22:31 | barry | Resolution | open => fixed |
| 2014-03-01 22:31 | barry | Assigned To | => barry |
| 2014-03-07 14:02 | ruslan | Note Added: 0001524 | |
| 2014-03-07 14:02 | ruslan | Status | resolved => feedback |
| 2014-03-07 14:02 | ruslan | Resolution | fixed => reopened |
| 2014-03-10 16:45 | barry | Note Added: 0001525 | |
| 2014-03-10 16:45 | barry | Status | feedback => resolved |
| 2014-03-10 16:45 | barry | Resolution | reopened => fixed |
| 2014-04-28 14:56 | ruslan | Status | resolved => closed |