| | |
| | | trace(L"BusinessItemID:" + id); |
| | | xml x = ViewObject::RetrieveData(L"/sale/data/TO/business/document", L"BusinessItemID", id); |
| | | |
| | | BSTR str; |
| | | x.get_xml(str); |
| | | ::SysFreeString(str); |
| | | /* |
| | | xml sheet ; |
| | | sheet.setNativePointer(x.CreateInstance()); |
| | |
| | | ensureRowID(); |
| | | |
| | | xstring content = dw_cell.GetData(); |
| | | string val = content.c_str(); |
| | | content = content.mid(content.find(L"<xsheet"), 9999999); |
| | | while (true) |
| | | { |
| | |
| | | dw_cell.SetColumnWidth(colCustomerItemNo, 0); |
| | | dw_cell.SetColumnWidth(colItemName, 0); |
| | | dw_cell.SetColumnWidth(colItemCName, 0); |
| | | dw_cell.SetColumnWidth(colBuyerRemark, 0); |
| | | //dw_cell.SetColumnWidth(colBuyerRemark, 0); |
| | | dw_cell.SetColumnWidth(colPackage, 0); |
| | | dw_cell.SetColumnWidth(colQty, 0); |
| | | dw_cell.SetColumnWidth(col40HQ, 0); |
| | |
| | | } |
| | | } |
| | | } |
| | | if (!bPrice1) |
| | | if (!bPrice1 && colSupplier1 > 0) |
| | | { |
| | | dw_cell.SetRowColumn(1, colSupplier1); |
| | | dw_cell.SetAnchorRowColumn(1, colSupplier1); |