Exemplo n.º 1
0
        private void loadSubJobList(int idx)
        {
            DataReadWriteHelper jobReader = new DataReadWriteHelper(Global.config);

            _checkSubJobIndex = -1;
            jobReader.readData(ref this.lvSubJobList, "select * from sub_job_list where job_id = " + lvJobShower.Items[idx].SubItems[0].Text);
        }
Exemplo n.º 2
0
        //刷新业务信息数据,功能函数
        private void refreshData()
        {
            DataReadWriteHelper jobReader = new DataReadWriteHelper(Global.config);

            jobReader.readData(ref this.lvJob, "select * from job_list");
            jobReader.readData(ref this.lvJobShower, "select * from job_list");
            if (_checkIndex >= 0 && lvJob.Items.Count > _checkIndex)
            {
                lvJob.Items[_checkIndex].Checked = true;
            }
            if (_checkJobShowerIndex >= 0 && lvJobShower.Items.Count > _checkJobShowerIndex)
            {
                lvJobShower.Items[_checkJobShowerIndex].Checked = true;
            }
            if (_checkSubJobIndex >= 0 && lvSubJobList.Items.Count > _checkSubJobIndex)
            {
                lvSubJobList.Items[_checkSubJobIndex].Checked = true;
            }
        }
Exemplo n.º 3
0
        //获取位置点列表信息
        private void getPovList()
        {
            DataReadWriteHelper drw = new DataReadWriteHelper(Global.config);

            _listPov = drw.readData <PovInfo>("select ID, PlaceName from Nav");
            if (_listPov != null && _listPov.Count > 0)
            {
                foreach (PovInfo t in _listPov)
                {
                    if (t.PlaceName != null && t.ID > 0)
                    {
                        cbPostId.Items.Add(t.PlaceName);
                    }
                }
            }
        }
Exemplo n.º 4
0
        //判断是否可以删除某个子步骤
        private bool checkCanDelete(string subId)
        {
            DataReadWriteHelper jobReader = new DataReadWriteHelper(Global.config);

            return(jobReader.readData <SubJobInfo>("select * from sub_job_list where PriorID = " + subId).Count < 1);
        }