View Issue Details

IDProjectCategoryView StatusLast Update
0000624СкладGeneralpublic2014-04-28 14:56
Reporterruslan Assigned Tobarry  
PriorityurgentSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Summary0000624: +Склад - Справочник Товары - Карточка товара новый параметр Упаковки
DescriptionТЗ в файле.
TagsNo tags attached.

Activities

ruslan

2014-02-17 09:58

manager  

ruslan

2014-02-26 16:39

manager  

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                               ***/
/******************************************************************************/
DK_GOODSPACK.txt (3,260 bytes)   

ruslan

2014-02-26 16:39

manager   ~0001511

Вот таблица

barry

2014-02-26 16:48

administrator   ~0001512

таблица
mebl_ib5.zip

barry

2014-03-01 22:31

administrator   ~0001514

stor32.zip

ruslan

2014-03-07 14:02

manager   ~0001524

1. Редактирование по двойному клику в гриде упаковок.
2. По генерации штрих-кода:
- сделай чтоб впереди была цифра 5(чтоб не путать с товаром)
- добавь возможность генерировать штрих-код не только при сохранении... т.к. могут возникнуть разные ситуации и для восстановления штрих-кода - механизма -нет.

barry

2014-03-10 16:45

administrator   ~0001525

stor32.zip

Issue History

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