//public double AllVol
        //{
        //        //get
        //        //{
        //        //    double LineVol=0.0,BianVol=0.0;
        //        //    int fy = 2010;
        //        //    try { fy = int.Parse(FinishYear); }
        //        //    catch { }
        //        //    if (fy < syear)
        //        //        fy = syear;
        //        //    double pei = Math.Pow((1 + tzgsXs),(fy - syear));
        //        //    string conn="";
        //        //    if (Line)
        //        //    {
        //        //        if (comboBoxEdit5.Text == "" || comboBoxEdit3.Text == "" || comboBoxEdit7.Text == "")
        //        //            LineVol += 0.0;
        //        //        else
        //        //        {
        //        //            conn = "S5='1' and S1='" + comboBoxEdit5.Text + "' and Type='" + comboBoxEdit3.Text + "' and Name='" + comboBoxEdit7.Text + "'";
        //        //            double linevolPer = oper.GetAllVol(conn);
        //        //            LineVol += linevolPer * double.Parse(spinEdit1.Text);
        //        //        }
        //        //    }
        //        //    else
        //        //    {
        //        //        if (comboBoxEdit6.Text == "" || comboBoxEdit4.Text == "" || comboBoxEdit12.Text == "")
        //        //            LineVol += 0.0;
        //        //        else
        //        //        {
        //        //            conn = "S5='2' and S1='" + comboBoxEdit6.Text + "' and Name='" + comboBoxEdit4.Text + "' and Type='"+comboBoxEdit12+"'";
        //        //            double linevolPer = oper.GetAllVol(conn);
        //        //            BianVol += linevolPer * double.Parse(spinEdit2.Text);
        //        //        }
        //        //    }
        //        //    return BianVol+LineVol;
        //        //}
        //}

        public void InitCom()
        {
            comboBoxEdit9.Properties.Items.Add("新建");
            comboBoxEdit9.Properties.Items.Add("扩建");
            comboBoxEdit9.Properties.Items.Add("改造");
            comboBoxEdit9.SelectedIndex = 0;
            for (int i = yAnge.BeginYear; i <= yAnge.EndYear; i++)
            {
                comboBoxEdit1.Properties.Items.Add(i.ToString());
                comboBoxEdit2.Properties.Items.Add(i.ToString());
            }
            string conn = "ProjectID='" + Itop.Client.MIS.ProgUID + "' order by Sort";
            IList <PS_Table_AreaWH> list = Services.BaseService.GetList <PS_Table_AreaWH>("SelectPS_Table_AreaWHByConn", conn);

            foreach (PS_Table_AreaWH area in list)
            {
                comboBoxEdit10.Properties.Items.Add(area.Title);
            }
            comboBoxEdit1.Text = DateTime.Now.Year.ToString();
            comboBoxEdit2.Text = DateTime.Now.AddYears(1).Year.ToString();
            IList <string> strList = oper.GetLineS1("S5='2'");

            foreach (string str in strList)
            {
                comboBoxEdit5.Properties.Items.Add(str);
            }
            comboBoxEdit5.SelectedIndex = 0;
            strList = oper.GetLineS1("S5='2'");
            foreach (string str in strList)
            {
                comboBoxEdit6.Properties.Items.Add(str);
            }
            comboBoxEdit6.SelectedIndex = 0;
        }
        public void InitCom()
        {
            comboBoxEdit9.Properties.Items.Add("新建");
            comboBoxEdit9.Properties.Items.Add("扩建");
            comboBoxEdit9.Properties.Items.Add("改造");
            comboBoxEdit9.SelectedIndex = 0;

            for (int i = yAnge.BeginYear; i <= yAnge.EndYear; i++)
            {
                comboBoxEdit1.Properties.Items.Add(i.ToString());
                comboBoxEdit2.Properties.Items.Add(i.ToString());
            }
            comboBoxEdit1.Text = DateTime.Now.Year.ToString();
            comboBoxEdit2.Text = DateTime.Now.AddYears(1).Year.ToString();
            IList <string> strList = oper.GetLineS1("S5='1'");

            foreach (string str in strList)
            {
                comboBoxEdit5.Properties.Items.Add(str);
            }
            comboBoxEdit5.SelectedIndex = 0;
            strList = oper.GetLineS1("S5='2'");
            foreach (string str in strList)
            {
                comboBoxEdit6.Properties.Items.Add(str);
            }
            comboBoxEdit6.SelectedIndex = 0;
            strList = oper.GetLineName("S5='2' and S1='" + comboBoxEdit6.Text + "' and name like'%" + comboBoxEdit9.Text + "%'");
            if (strList.Count != 0)
            {
                comboBoxEdit4.Text = strList[0].ToString();
            }
        }
Exemple #3
0
        public void InitCom()
        {
            comboBoxEdit9.Properties.Items.Add("新建");
            comboBoxEdit9.Properties.Items.Add("扩建");
            comboBoxEdit9.Properties.Items.Add("改造");
            comboBoxEdit9.SelectedIndex = 0;
            for (int i = yAnge.BeginYear; i <= yAnge.EndYear; i++)
            {
                comboBoxEdit1.Properties.Items.Add(i.ToString());
                comboBoxEdit2.Properties.Items.Add(i.ToString());
            }
            comboBoxEdit1.Text = DateTime.Now.Year.ToString();
            comboBoxEdit2.Text = DateTime.Now.AddYears(1).Year.ToString();
            IList <string> strList = oper.GetLineS1("S5='1'");

            foreach (string str in strList)
            {
                comboBoxEdit5.Properties.Items.Add(str);
            }
            comboBoxEdit5.SelectedIndex = 0;
            strList = oper.GetLineS1("S5='2'");
            foreach (string str in strList)
            {
                comboBoxEdit6.Properties.Items.Add(str);
            }
            comboBoxEdit6.SelectedIndex = 0;
        }
Exemple #4
0
        public void InitCom()
        {
            comboBoxEdit9.Properties.Items.Add("新建");
            comboBoxEdit9.Properties.Items.Add("扩建");
            comboBoxEdit9.Properties.Items.Add("改造");
            comboBoxEdit9.SelectedIndex = 0;

            for (int i = yAnge.BeginYear; i <= yAnge.EndYear; i++)
            {
                comboBoxEdit1.Properties.Items.Add(i.ToString());
                comboBoxEdit2.Properties.Items.Add(i.ToString());
            }
            comboBoxEdit1.Text = DateTime.Now.Year.ToString();
            comboBoxEdit2.Text = DateTime.Now.AddYears(1).Year.ToString();
            IList <string> strList = oper.GetLineS1("S5='1'");

            foreach (string str in strList)
            {
                comboBoxEdit5.Properties.Items.Add(str);
            }
            comboBoxEdit5.SelectedIndex = 0;
            strList = oper.GetLineS1("S5='2'");
            foreach (string str in strList)
            {
                comboBoxEdit6.Properties.Items.Add(str);
            }
            comboBoxEdit6.SelectedIndex = 0;
            strList = oper.GetLineName("S5='2' and S1='" + comboBoxEdit6.Text + "' and name like'%" + comboBoxEdit9.Text + "%'");
            if (strList.Count != 0)
            {
                comboBoxEdit4.Text = strList[0].ToString();
            }
            IList <string> areatyplist = null;

            if (Common.Services.BaseService.GetList <string>("SelectBuildProDifAreaType", "") != null)
            {
                areatyplist = Common.Services.BaseService.GetList <string>("SelectBuildProDifAreaType", "");

                for (int j = 0; j < areatyplist.Count; j++)
                {
                    comboBoxEdit11.Properties.Items.Add(areatyplist[j]);
                }
            }
            //导线型号
            WireCategory wc = new WireCategory();

            wc.Type = "40";
            IList <WireCategory> list = Common.Services.BaseService.GetList <WireCategory>("SelectWireCategoryList", wc);

            for (int k = 0; k < list.Count; k++)
            {
                comboBoxEdit14.Properties.Items.Add(list[k].WireType);
            }
        }
Exemple #5
0
 public void InitCom()
 {
     OperTable oper=new OperTable();
     IList<string> list = oper.GetLineS1("1=1");
     foreach (string str in list)
         comboBoxEdit1.Properties.Items.Add(str);
     if (comboBoxEdit1.Properties.Items.Count > 0)
         comboBoxEdit1.SelectedIndex = 0;
 }
Exemple #6
0
        public void InitCom()
        {
            OperTable      oper = new OperTable();
            IList <string> list = oper.GetLineS1("1=1");

            foreach (string str in list)
            {
                comboBoxEdit1.Properties.Items.Add(str);
            }
            if (comboBoxEdit1.Properties.Items.Count > 0)
            {
                comboBoxEdit1.SelectedIndex = 0;
            }
        }