Exemplo n.º 1
0
        private void NewProductMDRetProc(Form form, object data)
        {
            BOProduct proBo = (BOProduct)data;

            if (proBo == null)
            {
                return;
            }
            ProductMD proMd = (ProductMD)proBo.GetBOTable();

            objList.AddObject(proMd);
        }
Exemplo n.º 2
0
        private void UpdateProMdRetProc(Form form, object data)
        {
            BOProduct proBo = (BOProduct)data;

            if (proBo == null)
            {
                return;
            }
            ProductMD proMd = (ProductMD)proBo.GetBOTable();
            IList     list  = (IList)objList.Objects;
            ProductMD md    = (ProductMD)list[objList.LastHitInfo.RowIndex];

            md.CopyFrom(proMd);
            objList.RefreshObject(md);
        }