private void select_RelateClient_SelectChange(object sender, SelectChangeEventArgs e) { int _clientid = 0; if (!string.IsNullOrEmpty(select_RelateClient.SelectValue) && int.TryParse(select_RelateClient.SelectValue, out _clientid)) { TextBox tbx_Address = (TextBox)pl_detail.FindControl("JN_Journal_Address"); CM_ClientBLL _c = new CM_ClientBLL(_clientid); if (tbx_Address != null && _c.Model != null) { tbx_Address.Text = _c.Model.Address; } } }
protected void select_RelateClient_SelectChange(object sender, SelectChangeEventArgs e) { if (!string.IsNullOrEmpty(select_RelateClient.SelectValue)) { try { ddl_RelateLinkMan.DataSource = CM_LinkManBLL.GetModelList("ClientID=" + select_RelateClient.SelectValue + " AND MCS_SYS.dbo.UF_Spilt2('MCS_CM.dbo.CM_LinkMan',ExtPropertys,'Dimission')!='2'"); ddl_RelateLinkMan.DataBind(); ddl_RelateLinkMan.Enabled = true; ddl_RelateLinkMan.Items.Insert(0, new ListItem("请选择", "0")); } catch { } } }
protected void select_StageClient_SelectChange(object sender, SelectChangeEventArgs e) { MCSSelectControl select_StageClient = (MCSSelectControl)pl_detail.FindControl("CAT_Activity_StageClient"); int client = 0; if (int.TryParse(select_StageClient.SelectValue, out client) && client > 0) { CM_ClientBLL _c = new CM_ClientBLL(client); TextBox tbx_Address = (TextBox)pl_detail.FindControl("CAT_Activity_Address"); if (tbx_Address != null && _c.Model != null) { tbx_Address.Text = _c.Model.Address; } } }
protected void select_Staff_SelectChange(object sender, SelectChangeEventArgs e) { if (select_Staff.SelectValue != "") { Org_StaffBLL staff = new Org_StaffBLL(int.Parse(select_Staff.SelectValue), true); select_Staff.SelectText = staff.Model.RealName; select_Staff.SelectValue = staff.Model.ID.ToString(); Org_PositionBLL position = new Org_PositionBLL(staff.Model.Position); lbl_Position.Text = position.Model.Name; MCSTreeControl tr_OfficialCity = (MCSTreeControl)pl_detail.FindControl("JN_Journal_OfficialCity"); tr_OfficialCity.SelectValue = staff.Model.OfficialCity.ToString(); } else { MessageBox.Show(this, "请正确选择日志填报人!"); return; } }
private void select_RelateClient_SelectChange(object sender, SelectChangeEventArgs e) { int _clientid = 0; if (!string.IsNullOrEmpty(select_RelateClient.SelectValue) && int.TryParse(select_RelateClient.SelectValue, out _clientid)) { TextBox tbx_Address = (TextBox)pl_detail.FindControl("JN_Journal_Address"); CM_ClientBLL _c = new CM_ClientBLL(_clientid); if (tbx_Address != null && _c.Model != null) { tbx_Address.Text = _c.Model.Address; } } }
protected void select_StageClient_SelectChange(object sender, SelectChangeEventArgs e) { MCSSelectControl select_StageClient = (MCSSelectControl)pl_detail.FindControl("CAT_Activity_StageClient"); int client = 0; if (int.TryParse(select_StageClient.SelectValue, out client) && client > 0) { CM_ClientBLL _c = new CM_ClientBLL(client); TextBox tbx_Address = (TextBox)pl_detail.FindControl("CAT_Activity_Address"); if (tbx_Address != null && _c.Model != null) tbx_Address.Text = _c.Model.Address; } }
protected void select_Staff_SelectChange(object sender, SelectChangeEventArgs e) { if (select_Staff.SelectValue != "") { Org_StaffBLL staff = new Org_StaffBLL(int.Parse(select_Staff.SelectValue), true); select_Staff.SelectText = staff.Model.RealName; select_Staff.SelectValue = staff.Model.ID.ToString(); Org_PositionBLL position = new Org_PositionBLL(staff.Model.Position); lbl_Position.Text = position.Model.Name; MCSTreeControl tr_OfficialCity = (MCSTreeControl)pl_detail.FindControl("JN_Journal_OfficialCity"); tr_OfficialCity.SelectValue = staff.Model.OfficialCity.ToString(); } else { MessageBox.Show(this, "请正确选择日志填报人!"); return; } }
protected void select_RelateClient_SelectChange(object sender, SelectChangeEventArgs e) { if (!string.IsNullOrEmpty(select_RelateClient.SelectValue)) { try { ddl_RelateLinkMan.DataSource = CM_LinkManBLL.GetModelList("ClientID=" + select_RelateClient.SelectValue + " AND MCS_SYS.dbo.UF_Spilt2('MCS_CM.dbo.CM_LinkMan',ExtPropertys,'Dimission')!='2'"); ddl_RelateLinkMan.DataBind(); ddl_RelateLinkMan.Enabled = true; ddl_RelateLinkMan.Items.Insert(0, new ListItem("请选择", "0")); } catch { } } }