//往来单位
 private void txtcDepartment_ChooserClick(object sender, EventArgs e)
 {
     frmBtype frmbtype = new frmBtype();
     if (frmbtype.ShowDialog() == DialogResult.OK)
     {
         txtcDepartment.Text = frmbtype.BtypeName;
     }
 }
 //往来单位2选择器
 private void txtcCustName2_ChooserClick(object sender, EventArgs e)
 {
     frmBtype frmUints = new frmBtype();
     if (frmUints.ShowDialog() == DialogResult.OK)
     {
         txtcCustName2.Text = frmUints.BtypeName;
     }
     return;
     if (CommonCtrl.IsNullToString(cboOrderType.SelectedValue) == "")
     {
         return;
     }
     DataSources.EnumAccountVerification enumAccount = (DataSources.EnumAccountVerification)Convert.ToInt32(cboOrderType.SelectedValue);
     switch (enumAccount)
     {
         case DataSources.EnumAccountVerification.YuShouToYingShou://预收冲应收
         case DataSources.EnumAccountVerification.YingShouToYingShou://应收转应收
         case DataSources.EnumAccountVerification.YingFuToYingShou://应付冲应收
         case DataSources.EnumAccountVerification.YuShouToYuShou://预收转预收
             frmCustomerInfo frmCustomer = new frmCustomerInfo();
             if (frmCustomer.ShowDialog() == DialogResult.OK)
             {
                 txtcCustName2.Tag = frmCustomer.strCustomerId;
                 txtcCustName2.Text = frmCustomer.strCustomerName;
             }
             break;
         case DataSources.EnumAccountVerification.YuFuToYingFu://预付冲应付
         case DataSources.EnumAccountVerification.YingFuToYingFu://应付转应付
         case DataSources.EnumAccountVerification.YingShouToYingFu://应收冲应付
         case DataSources.EnumAccountVerification.YuFuToYuFu://预付转预付
             frmSupplier frmSupp = new frmSupplier();
             if (frmSupp.ShowDialog() == DialogResult.OK)
             {
                 txtcCustName2.Tag = frmSupp.supperID;
                 txtcCustName2.Text = frmSupp.supperName;
             }
             break;
     }
 }