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 BindingListView<PayPaymentOrderPackPayment> FindByPaymentOrderPackId(long paymentOrderPackId)
 {
     System.Data.SqlClient.SqlParameter[] parameters = new System.Data.SqlClient.SqlParameter[] { new System.Data.SqlClient.SqlParameter("@paymentOrderPackId", System.Data.SqlDbType.BigInt) };
     parameters[0].set_Value((long) paymentOrderPackId);
     BindingListView<PayPaymentOrderPackPayment> view = new BindingListView<PayPaymentOrderPackPayment>();
     foreach (System.Data.DataRow row in DALSql.ExecuteDataTable(this.SelectQuery + "where paymentOrderPackId=@paymentOrderPackId", parameters).Rows)
     {
         PayPaymentOrderPackPayment owid = new PayPaymentOrderPackPayment();
         this.Load(row, owid);
         view.Add(owid);
     }
     return view;
 }