public DocsTblRowChangeEvent(DocsTblRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void AddDocsTblRow(DocsTblRow row) { this.Rows.Add(row); }
public void RemoveDocsTblRow(DocsTblRow row) { this.Rows.Remove(row); }
public DocsBinTblRow ConvertToBin(DocsTblRow row) { ProductsDataSet.DocsBinTblRow docRow = this.DocsBinTbl.NewDocsBinTblRow(); docRow.Barcode = row.Barcode; byte[] b = TSDUtils.CustomEncodingClass.Encoding.GetBytes(row.DocId//docid ); docRow.DocId = new byte[b.Length + 1]; docRow.DocId[0] = row.DocType; System.Array.Copy(b, 0, docRow.DocId, 1, b.Length); //TSDUtils.CustomEncodingClass.Encoding.GetBytes( //row.DocType.ToString("00")/*тип документа*/+ row.DocId//docid // ); if (row["Priority"] != System.DBNull.Value && row["WorkMode"] != System.DBNull.Value) docRow.Priority = (System.Int16)(row.Priority | (row.WorkMode << 14)); docRow["Quantity"] = row["Quantity"]; if (row["RePriceDate"] != System.DBNull.Value) docRow.RePriceDate = (short)row.RePriceDate.Subtract(Program.Default.BaseDate).Days; if (row["ReturnDate"] != System.DBNull.Value) docRow.ReturnDate = (short)row.ReturnDate.Subtract(Program.Default.BaseDate).Days; //int shablon = row.LabelCode ; // shablon = row.LabelCode| (row.MusicCode << 3); // shablon = (row.LabelCode| (row.MusicCode << 3)) | (row.VibroCode << 6); docRow.Shablon = (row.LabelCode | (row.MusicCode << 3)) | (row.VibroCode << 6); if (row["Text1"] != System.DBNull.Value) docRow.Text1 = TSDUtils.CustomEncodingClass.Encoding.GetBytes(row.Text1); if (row["Text2"] != System.DBNull.Value) docRow.Text2 = TSDUtils.CustomEncodingClass.Encoding.GetBytes(row.Text2); if (row["Text3"] != System.DBNull.Value) docRow.Text3 = TSDUtils.CustomEncodingClass.Encoding.GetBytes(row.Text3); return docRow; }