コード例 #1
0
        public void CallCustContactEnquiry(object[] param)              //Холбоо барисан харилцагчийн лавлагаа дуудах
        {
            _core = (Core.Core)param[0];
            object[] obj        = new object[1];
            long     CustomerID = 1;

            try
            {
                CustomerID = Static.ToLong(param[1]);
                obj[0]     = (DataRow)param[2];
            }
            catch { CustomerID = 1; obj = null; }
            InfoPos.Enquiry.CustContactEnquiry CusEnq = new InfoPos.Enquiry.CustContactEnquiry(_core, CustomerID, obj);
            CusEnq.ShowDialog();
        }
コード例 #2
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (ucContactList.DataSource != null)
     {
         DataRow   DR = ucContactList.gridView1.GetFocusedDataRow();
         DataView  DV = (DataView)ucContactList.gridView1.DataSource;
         DataTable DT = DV.ToTable();
         if (DR != null && DV != null)
         {
             object[] obj = new object[2];
             obj[0] = DR;
             InfoPos.Enquiry.CustContactEnquiry CusEnq = new InfoPos.Enquiry.CustContactEnquiry(_core, CustomerID, obj);
             CusEnq.ShowDialog();
         }
     }
 }