|
@@ -47,7 +47,7 @@ namespace OpWin
|
|
|
{
|
|
|
comb_Delegation.ValueMember = "Id";
|
|
|
comb_Delegation.DisplayMember = "TeamName";
|
|
|
- soure = Db.Queryable<Grp_DelegationInfo>().ToList();
|
|
|
+ soure = Db.Queryable<Grp_DelegationInfo>().Where(x=>x.IsDel == 0).ToList();
|
|
|
comb_Delegation.Items.AddRange(soure.ToArray());
|
|
|
comb_Delegation.DropDownHeight = 200;
|
|
|
}
|
|
@@ -67,9 +67,9 @@ namespace OpWin
|
|
|
}
|
|
|
catch (Exception)
|
|
|
{
|
|
|
- lblOutputResult.Text = "请正确的选择团组!";
|
|
|
+ lblOutputResult.Text = "请选择正确的团组!";
|
|
|
lblOutputResult.ForeColor = Color.Black;
|
|
|
- MessageBox.Show("请正确的选择团组!");
|
|
|
+ MessageBox.Show("请选择正确的团组!");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -90,9 +90,9 @@ namespace OpWin
|
|
|
|
|
|
if (di == null)
|
|
|
{
|
|
|
- lblOutputResult.Text = "请正确的选择团组!";
|
|
|
+ lblOutputResult.Text = "请选择正确的团组!";
|
|
|
lblOutputResult.ForeColor = Color.Black;
|
|
|
- MessageBox.Show("请正确的选择团组!");
|
|
|
+ MessageBox.Show("请选择正确的团组!");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -4817,7 +4817,7 @@ namespace OpWin
|
|
|
|
|
|
//查询该三字码所对应城市的数据
|
|
|
//ThreeCode Pre_TC = tcs.getByThree(Pre_citycode);
|
|
|
- Res_ThreeCode Pre_TC = Db.Queryable<Res_ThreeCode>().First(x => x.Three == Pre_citycode.ToUpper() && x.IsDel == 0 );
|
|
|
+ Res_ThreeCode Pre_TC = Db.Queryable<Res_ThreeCode>().First(x => x.Three.ToUpper() == Pre_citycode.ToUpper() && x.IsDel == 0 );
|
|
|
|
|
|
//验证是否存在三字码
|
|
|
if (Pre_TC == null)
|
|
@@ -4861,7 +4861,7 @@ namespace OpWin
|
|
|
Res_AirCompany getByShortCode(string ShortCode)
|
|
|
{
|
|
|
//return this.excuteType("select * from AirCompany where Isdel=0 and ShortCode=@ShortCode", new SqlParameter("@ShortCode", ShortCode.ToUpper()));
|
|
|
- return Db.Queryable<Res_AirCompany>().First(x => x.ShortCode == ShortCode.ToUpper() && x.IsDel == 0);
|
|
|
+ return Db.Queryable<Res_AirCompany>().First(x => x.ShortCode.ToUpper() == ShortCode.ToUpper() && x.IsDel == 0);
|
|
|
}
|
|
|
|
|
|
public class GoogleMapApiResult
|
|
@@ -5092,15 +5092,22 @@ namespace OpWin
|
|
|
{
|
|
|
this.comb_Delegation.Items.AddRange(bindList.ToArray());
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ this.comb_Delegation.Items.Add(new Grp_DelegationInfo { TeamName = "", Id = -1 });
|
|
|
+ }
|
|
|
+
|
|
|
cb.SelectionStart = cb.Text.Length; // 设置光标位置,若不设置:光标位置始终保持在第一列,造成输入关键词的倒序排列
|
|
|
cb.Cursor = Cursors.Default; //保持鼠标指针原来状态,有时候鼠标指针会被下拉框覆盖,所以要进行一次设置
|
|
|
- cb.MaxDropDownItems = 8; // 自动弹出下拉框
|
|
|
-
|
|
|
+ cb.MaxDropDownItems = 8; // 自动弹出下拉框
|
|
|
}
|
|
|
|
|
|
|
|
|
private void comb_Delegation_MouseClick(object sender, MouseEventArgs e)
|
|
|
{
|
|
|
+ comb_Delegation.Text = "";
|
|
|
+ comb_Delegation_TextUpdate(sender, e);
|
|
|
+ comb_Delegation.DropDownHeight = 200;
|
|
|
comb_Delegation.DroppedDown = true;
|
|
|
}
|
|
|
}
|