private void BindDataToClbSelectLine() { if (clbSelectLine.Items.Count > 0) { clbSelectLine.Items.Clear(); } DataSet dsSelectLine = new DataSet(); dsSelectLine = privilegeEntity.GetLinesOwnedByRole(); if (privilegeEntity.ErrorMsg == "") { if (dsSelectLine.Tables.Count > 0) { selectLineTable = dsSelectLine.Tables[0]; for (int i = 0; i < dsSelectLine.Tables[0].Rows.Count; i++) { string lineName = dsSelectLine.Tables[0].Rows[i][FMM_PRODUCTION_LINE_FIELDS.FIELD_LINE_NAME].ToString(); clbSelectLine.Items.Add(lineName); } } } else { MessageService.ShowError("${res:FanHai.Hemera.Addins.Msg.ReadFailed}"); } }