protected void Load(System.Data.DataRow row, PayPaymentOrderPackPayment owid) { owid.PaymentOrderPackId = (long) ((long) row.get_Item("paymentOrderPackId")); owid.AccountNumber = (string) ((string) row.get_Item("accountNumber")); owid.Summ = (decimal) row.get_Item("summ"); owid.Created = (System.DateTime) row.get_Item("created"); owid.UserName = (string) ((string) row.get_Item("userName")); }
public void Load(System.Data.DataRow row, OldRole owid) { owid.Id = (long) ((long) row.get_Item("id")); owid.Name = (string) ((string) row.get_Item("name")); owid.PrintName = (string) ((string) row.get_Item("printName")); owid.TypeRole = (string) ((string) row.get_Item("typeRole")); }
protected override void OnItemDrag(System.Windows.Forms.ItemDragEventArgs e) { try { System.Windows.Forms.TreeNode node = e.get_Item() as System.Windows.Forms.TreeNode; if ((node != null) && !this.m_SelectedNodes.Contains(node)) { this.SelectSingleNode(node); this.ToggleNode(node, true); } base.OnItemDrag(e); } catch (System.Exception exception) { this.HandleException(exception); } }
private FixedSummServiceView Load(System.Data.DataRow row) { return new FixedSummServiceView { CanBeIncluded = System.Convert.ToBoolean(row.get_Item("canBeIncluded")), Include = false, FlatNumber = row.IsNull("flatNumber") ? string.Empty : ((string) ((string) row.get_Item("flatNumber"))), ApartmentNumber = row.IsNull("apartmentNumber") ? string.Empty : ((string) ((string) row.get_Item("apartmentNumber"))), Abonent = row.IsNull("accountOwner") ? string.Empty : ((string) ((string) row.get_Item("accountOwner"))), OwnershipType = row.IsNull("ownershipTypeName") ? string.Empty : ((string) ((string) row.get_Item("ownershipTypeName"))), MonthCount = row.IsNull("monthCount") ? ((int) 0) : ((int) ((int) row.get_Item("monthCount"))), ChargeSumm = (decimal) row.get_Item("chargeSumm"), IsNew = System.Convert.ToBoolean(row.get_Item("isNew")), AccountId = (long) ((long) row.get_Item("accountId")), FromDate = row.IsNull("fromDate") ? Constants.NullDate : ((System.DateTime) row.get_Item("fromDate")), AccountServiceId = row.IsNull("accountServiceId") ? ((long) 0L) : ((long) ((long) row.get_Item("accountServiceId"))) }; }
private void SetColumns(System.Windows.Forms.DataGridViewColumnCollection columns, string nameColumn, System.Windows.Forms.ToolStripButton tsb) { if (!tsb.get_Checked() && (this.GetVisibleColumns(columns) == 1)) { tsb.set_Checked(true); } else { columns.get_Item(nameColumn).set_Visible(tsb.get_Checked()); } }
public void Load(System.Data.DataRow row, Role owid) { owid.Id = row.IsNull("id") ? ((int) 0) : ((int) ((int) row.get_Item("id"))); owid.Right = row.IsNull("name") ? string.Empty : ((string) ((string) row.get_Item("name"))); owid.TypeRight = row.IsNull("name") ? RightTypesEnum.Пусто : ((RightTypesEnum) ((int) row.get_Item("TypeId"))); }
private static FasetItem Load(System.Data.DataRow row) { return new FasetItem((FasetsEnum) System.Convert.ToInt32(row.get_Item("fasetId")), row.get_Item("name").ToString()) { Id = System.Convert.ToInt32(row.get_Item("id")) }; }
private static void LoadChildren(System.Windows.Forms.BindingSource parentBS, System.Windows.Forms.BindingSource childBS) { if (!parentBS.get_IsBindingSuspended()) { LocalAddress parent = parentBS.get_Current() as LocalAddress; if (parent != null) { childBS.SuspendBinding(); if (parent == LocalAddress.Null) { childBS.Clear(); childBS.Add(LocalAddress.Null); } else { ObjectList<LocalAddress> list = new ObjectList<LocalAddress>(); ObjectList<LocalAddress> children = Mappers.LocalAddressMapper.GetChildren(parent); if (children.get_Count() == 1) { list.AddRange(children); list.Add(LocalAddress.Null); } else { list.Add(LocalAddress.Null); list.AddRange(children); } childBS.set_DataSource(list); } int index = childBS.IndexOf(LocalAddress.Null); childBS.ResumeBinding(); childBS.set_Position(((childBS.get_Count() == 2) && !((LocalAddress) childBS.get_Item(0)).Name.Equals(string.Empty)) ? ((int) 0) : index); } } }
public static string SQLGetType(System.Data.DataRow schemaRow) { return SQLGetType(schemaRow.get_Item("DataType"), int.Parse(schemaRow.get_Item("ColumnSize").ToString()), int.Parse(schemaRow.get_Item("NumericPrecision").ToString()), int.Parse(schemaRow.get_Item("NumericScale").ToString())); }
private Faset Load(System.Data.DataRow row) { return new Faset { Id = System.Convert.ToInt32(row.get_Item("id")), Name = row.get_Item("name").ToString(), IsSystem = row.IsNull("isSystem") ? ((bool) false) : ((bool) ((bool) row.get_Item("isSystem"))), Type = row.IsNull("type") ? string.Empty : ((string) ((string) row.get_Item("type"))) }; }
private AddressTariffView Load(System.Data.DataRow row) { return new AddressTariffView { Address = (string) ((string) row.get_Item("adr")), ServiceId = (long) ((long) row.get_Item("srvId")), ServiceCode = (int) ((int) row.get_Item("code")), ServiceName = (string) ((string) row.get_Item("shortName")), OldRate = (decimal) row.get_Item("rate") }; }
private static void LoadChildren(System.Windows.Forms.BindingSource parentBS, System.Windows.Forms.BindingSource childBS) { if (!parentBS.get_IsBindingSuspended()) { LocalAddress parent = parentBS.get_Current() as LocalAddress; if (parent != null) { childBS.SuspendBinding(); if (parent == LocalAddress.Null) { childBS.Clear(); } else { childBS.set_DataSource(Mappers.LocalAddressMapper.GetChildren(parent)); } int num = childBS.Add(LocalAddress.Null); childBS.ResumeBinding(); childBS.set_Position(((childBS.get_Count() == 2) && !((LocalAddress) childBS.get_Item(0)).Name.Equals(string.Empty)) ? ((int) 0) : num); } } }
private bool ToDateVerify(System.Collections.Generic.IList<ApartmentResidentBenefit> laprb) { if (laprb == null) { return false; } if (laprb.get_Count() == 0) { return false; } if (laprb.get_Count() != 1) { System.DateTime toDate = laprb.get_Item(0).ToDate; for (int i = 1; i < laprb.get_Count(); i = (int) (i + 1)) { if (toDate != laprb.get_Item(i).ToDate) { return false; } } } return true; }