Exemplo n.º 1
0
        private void BindDataToClbUnSelectLine()
        {
            if (clbUnSelectLine.Items.Count > 0)
            {
                clbUnSelectLine.Items.Clear();
            }
            DataSet dsUnSelectLine = new DataSet();

            dsUnSelectLine = privilegeEntity.GetLinesRoleNotOwn();
            if (privilegeEntity.ErrorMsg == "")
            {
                if (dsUnSelectLine.Tables.Count > 0)
                {
                    for (int i = 0; i < dsUnSelectLine.Tables[0].Rows.Count; i++)
                    {
                        string lineName = dsUnSelectLine.Tables[0].Rows[i][FMM_PRODUCTION_LINE_FIELDS.FIELD_LINE_NAME].ToString();
                        clbUnSelectLine.Items.Add(lineName);
                    }
                }
            }
            else
            {
                MessageService.ShowError("${res:FanHai.Hemera.Addins.Msg.ReadFailed}");
            }
        }