예제 #1
0
        private void BindDataToUnSelectOperation()
        {
            if (clbUnSelectOperation.Items.Count > 0)
            {
                clbUnSelectOperation.Items.Clear();
            }
            DataSet dsUnSelectOperation = new DataSet();

            dsUnSelectOperation = privilegeEntity.GetOperationRoleNotOwn();
            if (privilegeEntity.ErrorMsg == "")
            {
                if (dsUnSelectOperation.Tables.Count > 0)
                {
                    for (int i = 0; i < dsUnSelectOperation.Tables[0].Rows.Count; i++)
                    {
                        string operationName = dsUnSelectOperation.Tables[0].Rows[i]["ROUTE_OPERATION_NAME"].ToString();
                        clbUnSelectOperation.Items.Add(operationName);
                    }
                }
            }
            else
            {
                MessageService.ShowError("${res:FanHai.Hemera.Addins.Msg.ReadFailed}");
            }
        }