Beispiel #1
0
        private void DetailsList(int lIntRow)
        {
            lObjInspDetDTO = new DTO.InspectDetailDTO();


            lObjInspDetDTO.Type       = ((SAPbouiCOM.EditText)(mObjMtxInspDetails.Columns.Item("ColType").Cells.Item(lIntRow).Specific)).Value.ToString();
            lObjInspDetDTO.Quantity   = Convert.ToInt32(double.Parse(((SAPbouiCOM.EditText)(mObjMtxInspDetails.Columns.Item("ColQuan").Cells.Item(lIntRow).Specific)).Value.ToString()));
            lObjInspDetDTO.Commentary = ((SAPbouiCOM.EditText)(mObjMtxInspDetails.Columns.Item("ColComm").Cells.Item(lIntRow).Specific)).Value.ToString();
            lObjInspDetDTO.TypeMov    = ((SAPbouiCOM.EditText)(mObjMtxInspDetails.Columns.Item("ColTypeM").Cells.Item(lIntRow).Specific)).Value.Substring(0, 1);

            llstInspDetDTO.Add(lObjInspDetDTO);
        }
Beispiel #2
0
        private void DetailsListWithDt(int lIntRow)
        {
            lObjInspDetDTO = new DTO.InspectDetailDTO();

            lObjInspDetDTO.RowCode    = (mObjModalForm.DataSources.DataTables.Item("DtInspectionD").GetValue(1, lIntRow).ToString());
            lObjInspDetDTO.Type       = (mObjModalForm.DataSources.DataTables.Item("DtInspectionD").GetValue(0, lIntRow).ToString());
            lObjInspDetDTO.Quantity   = Convert.ToInt32(mObjModalForm.DataSources.DataTables.Item("DtInspectionD").GetValue(6, lIntRow));
            lObjInspDetDTO.Commentary = (mObjModalForm.DataSources.DataTables.Item("DtInspectionD").GetValue(5, lIntRow).ToString());
            lObjInspDetDTO.TypeMov    = (mObjModalForm.DataSources.DataTables.Item("DtInspectionD").GetValue(7, lIntRow).ToString());

            llstInspDetDTO.Add(lObjInspDetDTO);
        }