Esempio n. 1
0
        private void FrmConretestrength1_Load(object sender, EventArgs e)
        {
            CbxBeamFormType.SelectedIndex = 0;
            #region ���ݽ�������
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colbuildingfoundation = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colbuildingfoundation.HeaderText = "��������";
                colbuildingfoundation.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colconretestrength = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colconretestrength.HeaderText = "������ǿ�ȵȼ�";
                colconretestrength.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colconreteuse = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colconreteuse.HeaderText = "����������";
                colconreteuse.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colsamplingnumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colsamplingnumber.HeaderText = "ȡ���������飩";
                colsamplingnumber.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                X_Base.Columns.Add(colbuildingfoundation);
                X_Base.Columns.Add(colconretestrength);
                X_Base.Columns.Add(colconreteuse);
                X_Base.Columns.Add(colsamplingnumber);
                X_Base.Columns.Add(colWorkDelete);
                X_Base.Rows.Add();

                object[] strWork = new object[] { "��","���", "��","��", "ǽ" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Base.CurrentRow.Index;
                        X_Base.Rows[RowNum].Cells[0].Value = btnItem.Text;
                        X_Base.Refresh();
                    });
                    colbuildingfoundation.SubItems.Add(btnItem);
                }
                object[] strGrade = new object[] { "��", "C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80" };
                for (int i = 0; i < strGrade.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strGrade[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Base.CurrentRow.Index;
                        X_Base.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        X_Base.Refresh();
                    });
                    colconretestrength.SubItems.Add(btnItem);
                }

            }
            #endregion
            #region //���ݽ�������
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colmainfloor = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colmainfloor.HeaderText = "�������";
                colmainfloor.Width = 90;
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colmaintype = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colmaintype.HeaderText = "��������";
                colmaintype.Width = 90;
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colconretestrength = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colconretestrength.HeaderText = "������ǿ�ȵȼ�";
                colconretestrength.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colconreteuse = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colconreteuse.HeaderText = "����������";
                colconreteuse.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colsamplingnumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colsamplingnumber.HeaderText = "ȡ���������飩";
                colsamplingnumber.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                X_Mainpart.Columns.Add(colmainfloor);
                X_Mainpart.Columns.Add(colmaintype);
                X_Mainpart.Columns.Add(colconretestrength);
                X_Mainpart.Columns.Add(colconreteuse);
                X_Mainpart.Columns.Add(colsamplingnumber);
                X_Mainpart.Columns.Add(colWorkDelete);
                X_Mainpart.Rows.Add();

                object[] strfloor = new object[] {"��","�ײ�","����","����","�IJ�","���","����","�߲�","�˲�","�Ų�","ʮ��",
                    "ʮһ��","ʮ����","ʮ����","ʮ�IJ�","ʮ���","ʮ����","ʮ�߲�","ʮ�˲�","ʮ�Ų�","��ʮһ��","��ʮ����","��ʮ����","��ʮ�IJ�","��ʮ���",
                    "��ʮ����","��ʮ�߲�","��ʮ�˲�","��ʮ�Ų�","��ʮ","����" };
                for (int i = 0; i < strfloor.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strfloor[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Mainpart.CurrentRow.Index;
                        X_Mainpart.Rows[RowNum].Cells[0].Value = btnItem.Text;
                        X_Mainpart.Refresh();
                    });
                    colmainfloor.SubItems.Add(btnItem);

                }
                object[] strtype = new object[] { "��", "ǽ", "��", "��", "��" };
                for (int i = 0; i < strtype.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strtype[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Mainpart.CurrentRow.Index;
                        X_Mainpart.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        X_Mainpart.Refresh();
                    });
                    colmaintype.SubItems.Add(btnItem);

                }
                object[] strGrade = new object[] { "��", "C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80" };
                for (int i = 0; i < strGrade.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strGrade[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Mainpart.CurrentRow.Index;
                        X_Mainpart.Rows[RowNum].Cells[2].Value = btnItem.Text;
                        X_Mainpart.Refresh();
                    });
                    colconretestrength.SubItems.Add(btnItem);
                }

            }
            #endregion
            #region ���ݽ������ǻ�����
            {

                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colconretestrength = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colconretestrength.HeaderText = "������ǿ�ȵȼ�";
                colconretestrength.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colconreteuse = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colconreteuse.HeaderText = "����������";
                colconreteuse.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colsamplingnumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colsamplingnumber.HeaderText = "ȡ���������飩";
                colsamplingnumber.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                X_Concrete.Columns.Add(colconretestrength);
                X_Concrete.Columns.Add(colconreteuse);
                X_Concrete.Columns.Add(colsamplingnumber);
                X_Concrete.Columns.Add(colWorkDelete);
                X_Concrete.Rows.Add();

                object[] strGrade = new object[] { "��","C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80" };
                for (int i = 0; i < strGrade.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strGrade[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Concrete.CurrentRow.Index;
                        X_Concrete.Rows[RowNum].Cells[0].Value = btnItem.Text;
                        X_Concrete.Refresh();
                    });
                    colconretestrength.SubItems.Add(btnItem);
                }

            }
             #endregion
            #region ��������
            {
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colbuildingfoundation = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colbuildingfoundation.HeaderText = "ȡ��λ��";
                colbuildingfoundation.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colconretestrength = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colconretestrength.HeaderText = "������ǿ�ȵȼ�";
                colconretestrength.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colconreteuse = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colconreteuse.HeaderText = "����������";
                colconreteuse.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colsamplingnumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colsamplingnumber.HeaderText = "ȡ���������飩";
                colsamplingnumber.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                X_Otherproject.Columns.Add(colbuildingfoundation);
                X_Otherproject.Columns.Add(colconretestrength);
                X_Otherproject.Columns.Add(colconreteuse);
                X_Otherproject.Columns.Add(colsamplingnumber);
                X_Otherproject.Columns.Add(colWorkDelete);
                X_Otherproject.Rows.Add();

                object[] strGrade = new object[] { "��","C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80" };
                for (int i = 0; i < strGrade.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strGrade[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Otherproject.CurrentRow.Index;
                        X_Otherproject.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        X_Otherproject.Refresh();
                    });
                    colconretestrength.SubItems.Add(btnItem);
                }

            }
             #endregion
        }
Esempio n. 2
0
        private void FrmRecommend5_Load(object sender, EventArgs e)
        {
            #region //5����ʽ�ֹܽ��ּܡ����ϰ��ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "ѡ�����";
                colMaterialChoice.Width = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "��������";
                colMaterial.Width = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialNumber.HeaderText = "����";
                colMaterialNumber.Width = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialRemark = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialRemark.HeaderText = "���";
                colMaterialRemark.Width = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "ɾ����";
                colMaterialDelete.Width = 50;
                Dgv_Recommend5Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend5Material.Columns.Add(colMaterial);
                Dgv_Recommend5Material.Columns.Add(colMaterialNumber);
                Dgv_Recommend5Material.Columns.Add(colMaterialRemark);
                Dgv_Recommend5Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend5Material.Rows.Add();

                object[] strMaterial = new object[] { "��ʽ���ּ�MF1219", "��ʽ���ּ�MF0817", "��ʽ���ּ�MF1017", "�޷�ֹ�", "ľ���ְ�", "��ѹ�ֽ��ְ�", "��Ƭ���ְ�", "��Ž��ְ�", "��Ŀ��ȫ��", "ˮƽ��ȫ��", "ֱ�ǿۼ�", "��ת�ۼ�", "�Խӿۼ�" };
                string[] strStandard = new string[] { " ", " ", " ", "��48.3mm��3.6mm", "0.35 kN/m2", "0.30 kN/m2", "0.35 kN/m2", "0.10 kN/m2", "1.8m��6.0m", " ", " ", " ", " " };
                string[] strNumber = new string[] { "         ��", "         ��", "         ��", "           m", "      m2", "           m2", "           m2", "      m2", "           m2", "           m2",  "           ��", "           ��", "          ��" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {

                        int RowNum = Dgv_Recommend5Material.CurrentRow.Index;
                        Dgv_Recommend5Material.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strMaterial.Length; j++)
                        {
                            if (btnItem.Text == strMaterial[j].ToString())
                            {
                                Dgv_Recommend5Material.Rows[RowNum].Cells[2].Value = strNumber[j];
                                Dgv_Recommend5Material.Rows[RowNum].Cells[3].Value = strStandard[j];
                                break;
                            }
                        }
                        Dgv_Recommend5Material.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //5����ʽ�ֹܽ��ּܡ��Ͷ�������
               // {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "ѡ����";
                colWorktypeChoice.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "��������";
                colWorktype.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "����";
                colWorkNumber.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                Dgv_Recommend5Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend5Labor.Columns.Add(colWorktype);
                Dgv_Recommend5Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend5Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend5Labor.Rows.Add();

                object[] strWork = new object[] { "��������", "��ȫ�ල", "�������", "��������", "���ӹ�" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend5Labor.CurrentRow.Index;
                        Dgv_Recommend5Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend5Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
               // }
            #endregion
        }
Esempio n. 3
0
        private void FrmRecommend5_Load(object sender, EventArgs e)
        {
            #region //5工门式钢管脚手架—材料安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "选择材料";
                colMaterialChoice.Width      = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "材料名称";
                colMaterial.Width      = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialNumber.HeaderText = "数量";
                colMaterialNumber.Width      = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialRemark = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialRemark.HeaderText = "规格";
                colMaterialRemark.Width      = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "删除行";
                colMaterialDelete.Width      = 50;
                Dgv_Recommend5Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend5Material.Columns.Add(colMaterial);
                Dgv_Recommend5Material.Columns.Add(colMaterialNumber);
                Dgv_Recommend5Material.Columns.Add(colMaterialRemark);
                Dgv_Recommend5Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend5Material.Rows.Add();

                object[] strMaterial = new object[] { "门式脚手架MF1219", "门式脚手架MF0817", "门式脚手架MF1017", "无缝钢管", "木脚手板", "冲压钢脚手板", "竹串片脚手板", "竹芭脚手板", "密目安全网", "水平安全网", "直角扣件", "旋转扣件", "对接扣件" };
                string[] strStandard = new string[] { " ", " ", " ", "ф48.3mm×3.6mm", "0.35 kN/m2", "0.30 kN/m2", "0.35 kN/m2", "0.10 kN/m2", "1.8m×6.0m", " ", " ", " ", " " };
                string[] strNumber   = new string[] { "         套", "         套", "         套", "           m", "      m2", "           m2", "           m2", "      m2", "           m2", "           m2", "           个", "           个", "          个" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend5Material.CurrentRow.Index;
                        Dgv_Recommend5Material.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strMaterial.Length; j++)
                        {
                            if (btnItem.Text == strMaterial[j].ToString())
                            {
                                Dgv_Recommend5Material.Rows[RowNum].Cells[2].Value = strNumber[j];
                                Dgv_Recommend5Material.Rows[RowNum].Cells[3].Value = strStandard[j];
                                break;
                            }
                        }
                        Dgv_Recommend5Material.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //5工门式钢管脚手架—劳动力安排
            // {
            DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
            colWorktypeChoice.HeaderText = "选择工种";
            colWorktypeChoice.Width      = 100;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colWorktype.HeaderText = "工种名称";
            colWorktype.Width      = 180;
            DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
            colWorkNumber.HeaderText = "人数";
            colWorkNumber.Width      = 180;
            DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
            colWorkDelete.HeaderText = "删除行";
            colWorkDelete.Width      = 60;
            Dgv_Recommend5Labor.Columns.Add(colWorktypeChoice);
            Dgv_Recommend5Labor.Columns.Add(colWorktype);
            Dgv_Recommend5Labor.Columns.Add(colWorkNumber);
            Dgv_Recommend5Labor.Columns.Add(colWorkDelete);
            Dgv_Recommend5Labor.Rows.Add();

            object[] strWork = new object[] { "技术管理", "安全监督", "质量检查", "测量放线", "架子工" };
            for (int i = 0; i < strWork.Length; i++)
            {
                DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                btnItem.Text   = (string)strWork[i];
                btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                {
                    int RowNum = Dgv_Recommend5Labor.CurrentRow.Index;
                    Dgv_Recommend5Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                    Dgv_Recommend5Labor.Refresh();
                });
                colWorktypeChoice.SubItems.Add(btnItem);
            }
            // }
            #endregion
        }
Esempio n. 4
0
        private void FrmRecommend3_Load(object sender, EventArgs e)
        {
            #region //具体搭设情况
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType1 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType1.HeaderText = "参数名称";
            colParaType1.Width      = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult1 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult1.HeaderText = "参数值";
            colParaResult1.Width      = 100;
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType2 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType2.HeaderText = "参数名称";
            colParaType2.Width      = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult2 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult2.HeaderText = "参数值";
            colParaResult2.Width      = 100;

            Dgv_Recommend3Para.Columns.Add(colParaType1);
            Dgv_Recommend3Para.Columns.Add(colParaResult1);
            Dgv_Recommend3Para.Columns.Add(colParaType2);
            Dgv_Recommend3Para.Columns.Add(colParaResult2);
            Dgv_Recommend3Para.Rows.Add(6);
            string[] strParaType1   = new string[] { "脚手架搭设高度H(m)", "立杆纵向间距la(m)", "立杆步距h(m)", "顶部防护栏杆高h1(m)", "内立杆离建筑物距离a(mm)", "连墙件布置方式" };
            string[] strParaResult1 = new string[] { "X", "X", "X", "X", "X", "两步两跨/两步三跨" };
            string[] strParaType2   = new string[] { "脚手架沿纵向搭设长度L(m)", "立杆横向间距lb(m)", "脚手架总步数n", "纵横向扫地杆离地距离h2(mm)", "脚手板铺设方式", "" };
            string[] strParaResult2 = new string[] { "X", "X", "X", "X", "X步1设", " " };

            for (int i = 0; i < strParaType1.Length; i++)
            {
                Dgv_Recommend3Para.Rows[i].Cells[0].Value = strParaType1[i];
                Dgv_Recommend3Para.Rows[i].Cells[1].Value = strParaResult1[i];
                Dgv_Recommend3Para.Rows[i].Cells[2].Value = strParaType2[i];
                Dgv_Recommend3Para.Rows[i].Cells[3].Value = strParaResult2[i];
            }
            #endregion

            #region //3碗扣式脚手架—劳动力安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "选择工种";
                colWorktypeChoice.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "工种名称";
                colWorktype.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "人数";
                colWorkNumber.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                Dgv_Recommend3Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend3Labor.Columns.Add(colWorktype);
                Dgv_Recommend3Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend3Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend3Labor.Rows.Add();

                object[] strWork = new object[] { "技术管理", "安全监督", "质量检查", "测量放线", "架子工" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend3Labor.CurrentRow.Index;
                        Dgv_Recommend3Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend3Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region//3碗扣式脚手架—材料安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "选择材料";
                colMaterialChoice.Width      = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialName = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialName.HeaderText = "名称";
                colMaterialName.Width      = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialType = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialType.HeaderText = "型号";
                colMaterialType.Width      = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialStandard = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialStandard.HeaderText = "规格(mm)";
                colMaterialStandard.Width      = 110;
                DevComponents.DotNetBar.Controls.DataGridViewDoubleInputColumn colMarketWeight = new DevComponents.DotNetBar.Controls.DataGridViewDoubleInputColumn();
                colMarketWeight.HeaderText = "市场重量(kg)";
                colMarketWeight.Width      = 75;
                DevComponents.DotNetBar.Controls.DataGridViewDoubleInputColumn colDesignWeight = new DevComponents.DotNetBar.Controls.DataGridViewDoubleInputColumn();
                colDesignWeight.HeaderText = "设计重量(kg)";
                colDesignWeight.Width      = 75;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "删除行";
                colMaterialDelete.Width      = 50;
                Dgv_Recommend3Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend3Material.Columns.Add(colMaterialName);
                Dgv_Recommend3Material.Columns.Add(colMaterialType);
                Dgv_Recommend3Material.Columns.Add(colMaterialStandard);
                Dgv_Recommend3Material.Columns.Add(colMarketWeight);
                Dgv_Recommend3Material.Columns.Add(colDesignWeight);
                Dgv_Recommend3Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend3Material.Rows.Add();
                object[,] material = new object[, ] {
                    { "立杆", new string[] { "LG-120&ф48×3.5×1200&7.41&7.05", "LG-180&ф48×3.5×1800&10.67&10.19&", "LG-240&ф48×3.5×2400&14.02&13.34&", "LG-300&ф48×3.5×3000&17.31&16.48&" } },
                    { "横杆", new string[] { "HG-30&ф48×3.5×300&1.67&1.32", "HG-60&ф48×3.5×600&2.82&2.47", "HG-90&ф48×3.5×900&3.97&3.63", "HG-120&ф48×3.5×1200&5.12&4.78", "HG-150&ф48×3.5×1500&6.28&5.93", "HG-180&ф48×3.5×180&7.43&7.08" } },
                    { "间横杆", new string[] { "JHG-90&ф48×3.5×900&5.28&4.37 ", "JHG-120	&ф48×3.5×1200	&6.43&5.52", "JHG-120+30&ф48×3.5×(1200+300)&7.74	&6.85", "JHG-120+60&ф48×3.5×(1200+600)&9.69&8.16" } },
                    { "专用斜杆", new string[] { "XG-0912&ф48×3.5×150&7.11&6.33", "XG-1212&ф48×3.5×170&7.87&7.03", "XG-1218&ф48×3.5×2160&9.66&8.66", "XG-1518&ф48×3.5×2340&10.34&9.30", "XG-1818&ф48×3.5×2550	&11.13&10.04"} },
                    { "专用斜杆", new string[] { "ZXG-0912	&ф48×3.5×1270&0&5.89 ", " ZXG-1212	&ф48×3.5×1500&0&6.76", " ZXG-1218	&ф48×3.5×1920&0&8.73"} },
                    { "十字撑", new string[] { "XZC-0912&ф30×2.5×1390&0&4.72 ", " XZC-1212&ф30×2.5×1560&0&5.31", " XZC-1218	&ф30×2.5×2060&0&7"} },
                    { "窄挑梁", new string[] { "TL-30	&宽度300	&1.68	&1.53 "} },
                    { "宽挑梁", new string[] { " TL-60&宽度600	&9.30	&8.60"} },
                    { "立杆连接销", new string[] { "LLX	&ф12	&0&0.18"} },
                    { "可调底座", new string[] { "KTZ-45	&可调范围≤300	&0&5.82", " KTZ-60&可调范围≤450&0&7.12", "KTZ-75	&可调范围≤600	&0&8.5"} },
                    { "可调托座", new string[] { "KTC-45	&可调范围≤300	&0&7.01", "KTC-60&可调范围≤450&0&8.31", "KTC-75	&可调范围≤600	&0&9.69"} },
                    { "脚手板", new string[] { "JB-120&1200x270	&0&12.8", "JB-150&1500x270	&0&15", "JB-180&1800x270	&	0&17.9"} },
                    { "架梯", new string[] { "JT-255	&2546×530	&0&34.7"} },
                };
                for (int i = 0; i < 13; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)material[i, 0];
                    string[] types = (string[])material[i, 1];
                    for (int j = 0; j < types.Length; j++)
                    {
                        DevComponents.DotNetBar.ButtonItem btnChildItem = new DevComponents.DotNetBar.ButtonItem();
                        string[] info = types[j].ToString().Split('&');
                        btnChildItem.Text   = info[0];
                        btnChildItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                        {
                            int RowNum = Dgv_Recommend3Material.CurrentRow.Index;
                            DevComponents.DotNetBar.ButtonItem item            = sender1 as DevComponents.DotNetBar.ButtonItem;
                            Dgv_Recommend3Material.Rows[RowNum].Cells[1].Value = item.Parent.Text;
                            Dgv_Recommend3Material.Rows[RowNum].Cells[2].Value = info[0];
                            Dgv_Recommend3Material.Rows[RowNum].Cells[3].Value = info[1];
                            Dgv_Recommend3Material.Rows[RowNum].Cells[4].Value = info[2];
                            Dgv_Recommend3Material.Rows[RowNum].Cells[5].Value = info[3];
                            Dgv_Recommend3Material.Refresh();
                        });
                        btnItem.SubItems.Add(btnChildItem);
                    }
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 5
0
        private void FrmRecommend4_Load(object sender, EventArgs e)
        {
            #region //����������
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType1 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType1.HeaderText = "��������";
            colParaType1.Width = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult1 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult1.HeaderText = "����ֵ";
            colParaResult1.Width = 100;
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType2 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType2.HeaderText = "��������";
            colParaType2.Width = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult2 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult2.HeaderText = "����ֵ";
            colParaResult2.Width = 100;

            Dgv_Recommend4Para.Columns.Add(colParaType1);
            Dgv_Recommend4Para.Columns.Add(colParaResult1);
            Dgv_Recommend4Para.Columns.Add(colParaType2);
            Dgv_Recommend4Para.Columns.Add(colParaResult2);
            Dgv_Recommend4Para.Rows.Add(6);
            string[] strParaType1 = new string[] { "���ּܴ���߶�H(m)", "����������la(m)", "���˲���h(m)", "�����������˸�h1(m)", "�������뽨�������a(mm)", "��ǽ�����÷�ʽ" };
            string[] strParaResult1 = new string[] { "X", "X", "X", "X", "X", "��������/��������" };
            string[] strParaType2 = new string[] { "���ּ���������賤��L(m)", "���˺�����lb(m)", "���ּ��ܲ���n", "�ݺ���ɨ�ظ���ؾ���h2(mm)", "���ְ����跽ʽ", "" };
            string[] strParaResult2 = new string[] { "X", "X", "X", "X", "X��1��", " " };

            for (int i = 0; i < strParaType1.Length; i++)
            {
                Dgv_Recommend4Para.Rows[i].Cells[0].Value = strParaType1[i];
                Dgv_Recommend4Para.Rows[i].Cells[1].Value = strParaResult1[i];
                Dgv_Recommend4Para.Rows[i].Cells[2].Value = strParaType2[i];
                Dgv_Recommend4Para.Rows[i].Cells[3].Value = strParaResult2[i];
            }
            #endregion

            #region //4�в����̿�ʽ�ֹܽ��ּܡ��Ͷ������ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "ѡ����";
                colWorktypeChoice.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "��������";
                colWorktype.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "����";
                colWorkNumber.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                Dgv_Recommend4Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend4Labor.Columns.Add(colWorktype);
                Dgv_Recommend4Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend4Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend4Labor.Rows.Add();

                object[] strWork = new object[] { "��������", "��ȫ�ල", "�������", "��������", "���ӹ�" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend4Labor.CurrentRow.Index;
                        Dgv_Recommend4Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend4Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region//4�в����̿�ʽ�ֹܽ��ּܡ����ϰ��ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "ѡ�����";
                colMaterialChoice.Width = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialName = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialName.HeaderText = "����";
                colMaterialName.Width = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialType = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialType.HeaderText = "�ͺ�";
                colMaterialType.Width = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialStandard = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialStandard.HeaderText = "���(mm)";
                colMaterialStandard.Width = 110;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialQuality = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialQuality.HeaderText = "���� ";
                colMaterialQuality.Width = 75;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colDesignWeight = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colDesignWeight.HeaderText = "��������(kg)";
                colDesignWeight.Width = 75;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "ɾ����";
                colMaterialDelete.Width = 50;
                Dgv_Recommend4Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend4Material.Columns.Add(colMaterialName);
                Dgv_Recommend4Material.Columns.Add(colMaterialType);
                Dgv_Recommend4Material.Columns.Add(colMaterialStandard);
                Dgv_Recommend4Material.Columns.Add(colMaterialQuality);
                Dgv_Recommend4Material.Columns.Add(colDesignWeight);
                Dgv_Recommend4Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend4Material.Rows.Add();
                object[,] material = new object[,]{
                    {"����",new string[]{" A-LG-500	&	��60��3.2��500	&	Q345A	&	3.75 "," A-LG-1000	&	��60��3.2��1000	&	Q345A	&	6.65 "," A-LG-1500	&	��60��3.2��1500	&	Q345A	&	9.60 "," A-LG-2000	&	��60��3.2��2000	&	Q345A	&	12.50 "," A-LG-2500	&	��60��3.2��2500	&	Q345A	&	15.50 "," A-LG-3000	&	��60��3.2��3000	&	Q345A	&	18.40 "," B-LG-500	&	��48��3.2��500	&	Q345A	&	2.95 "," B-LG-1000	&	��48��3.2��1000	&	Q345A	&	5.30 "," B-LG-1500	&	��48��3.2��1500	&	Q345A	&	7.64 "," B-LG-2000	&	��48��3.2��2000	&	Q345A	&	9.90 "," B-LG-2500	&	��48��3.2��2500	&	Q345A	&	12.30 "," B-LG-3000	&	��48��3.2��3000	&	Q345A	&	14.65 "}},
                    {"ˮƽ��",new string[]{" A-SG-300	&	��48��2.5��240	&	Q235B	&	1.40 "," A-SG-600	&	��48��2.5��540	&	Q235B	&	2.30 "," A-SG-900	&	��48��2.5��840	&	Q235B	&	3.20 "," A-SG-1200	&	��48��2.5��1140	&	Q235B	&	4.10 "," A-SG-1500	&	��48��2.5��1440	&	Q235B	&	5.00 "," A-SG-1800	&	��48��2.5��1740	&	Q235B	&	5.90 "," A-SG-2000	&	��48��2.5��1940	&	Q235B	&	6.50 "," B-SG-300	&	��42��2.5��240	&	Q235B	&	1.30 "," B-SG-600	&	��42��2.5��540	&	Q235B	&	2.00 "," B-SG-900	&	��42��2.5��840	&	Q235B	&	2.80 "," B-SG-1200	&	��42��2.5��1140	&	Q235B	&	3.60 "," B-SG-1500	&	��42��2.5��1440	&	Q235B	&	4.30 "," B-SG-1800	&	��42��2.5��1740	&	Q235B	&	5.10 "," B-SG-2000	&	��42��2.5��1940	&	Q235B	&	5.60 "}},
                    {"�����",new string[]{" A-XG-300��1000	&	��48��2.5��1008	&	Q195	&	4.10 "," A-XG-300��1500	&	��48��2.5��1506	&	Q195	&	5.50 "," A-XG-600��1000	&	��48��2.5��1089	&	Q195	&	4.30 "," A-XG-600��1500	&	��48��2.5��1560	&	Q195	&	5.60 "," A-XG-900��1000	&	��48��2.5��1238	&	Q195	&	4.70 "," A-XG-900��1500	&	��48��2.5��1668	&	Q195	&	5.90 "," A-XG-900��2000	&	��48��2.5��2129	&	Q195	&	7.20 "," A-XG-1200��1000	&	��48��2.5��1436	&	Q195	&	5.30 "," A-XG-1200��1500	&	��48��2.5��1820	&	Q195	&	6.40 "," A-XG-1200��2000	&	��48��2.5��2250	&	Q195	&	7.55 "," A-XG-1500��1000	&	��48��2.5��1664	&	Q195	&	5.90 "," A-XG-1500��1500	&	��48��2.5��2005	&	Q195	&	6.90 "," A-XG-1500��2000	&	��48��2.5��2402	&	Q195	&	8.00 "," A-XG-1800��1000	&	��48��2.5��1912	&	Q195	&	6.60 "," A-XG-1800��1500	&	��48��2.5��2215	&	Q195	&	7.40 "," A-XG-1800��2000	&	��48��2.5��2580	&	Q195	&	8.50 "," A-XG-2000��1000	&	��48��2.5��2085	&	Q195	&	7.00 "," A-XG-2000��1500	&	��48��2.5��2411	&	Q195	&	7.90 "," A-XG-2000��2000	&	��48��2.5��2756	&	Q195	&	8.80 "," B-XG-300��1000	&	��33��2.3��1057	&	Q195	&	2.95 "," B-XG-300��1500	&	��33��2.3��1555	&	Q195	&	3.82 "," B-XG-600��1000	&	��33��2.3��1131	&	Q195	&	3.10 "," B-XG-600��1500	&	��33��2.3��1606	&	Q195	&	3.92 "," B-XG-900��1000	&	��33��2.3��1277	&	Q195	&	3.36 "," B-XG-900��1500	&	��33��2.3��1710	&	Q195	&	4.10 "," B-XG-900��2000	&	��33��2.3��2173	&	Q195	&	4.90 "," B-XG-1200��1000	&	��33��2.3��1472	&	Q195	&	3.70 "," B-XG-1200��1500	&	��33��2.3��1859	&	Q195	&	4.40 "," B-XG-1200��2000	&	��33��2.3��2291	&	Q195	&	5.10 "," B-XG-1500��1000	&	��33��2.3��1699	&	Q195	&	4.09 "," B-XG-1500��1500	&	��33��2.3��2042	&	Q195	&	4.70 "," B-XG-1500��2000	&	��33��2.3��2402	&	Q195	&	5.40 "," B-XG-1800��1000	&	��33��2.3��1946	&	Q195	&	4.53 "," B-XG-1800��1500	&	��33��2.3��2251	&	Q195	&	5.05 "," B-XG-1800��2000	&	��33��2.3��2618	&	Q195	&	5.70 "," B-XG-2000��1000	&	��33��2.3��2119	&	Q195	&	4.82 "," B-XG-2000��1500	&	��33��2.3��2411	&	Q195	&	5.35 "," B-XG-2000��2000	&	��33��2.3��2756	&	Q195	&	5.95 "}},
                    {"ˮƽб��",new string[]{" A-SXG-900��900	&	��48��2.5��1273	&	Q235B	&	4.30 "," A-SXG-900��1200	&	��48��2.5��1500	&	Q235B	&	5.00 "," A-SXG-900��1500	&	��48��2.5��1749	&	Q235B	&	5.70 "," A-SXG-1200��1200	&	��48��2.5��1697	&	Q235B	&	5.55 "," A-SXG-1200��1500	&	��48��2.5��1921	&	Q235B	&	6.20 "," A-SXG-1500��1500	&	��48��2.5��2121	&	Q235B	&	6.80 "," B-SXG-900��900	&	��42��2.5��1272	&	Q235B	&	3.80 "," B-SXG-900��1200	&	��42��2.5��1500	&	Q235B	&	4.30 "," B-SXG-900��1500	&	��42��2.5��1749	&	Q235B	&	5.00 "," B-SXG-1200��1200	&	��42��2.5��1697	&	Q235B	&	4.90 "," B-SXG-1200��1500	&	��42��2.5��1921	&	Q235B	&	5.50 "," B-SXG-1500��1500	&	��42��2.5��2121	&	Q235B	&	6.00 "}}
                };
                for (int i = 0; i < 4; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)material[i, 0];
                    string[] types = (string[])material[i, 1];
                    for (int j = 0; j < types.Length; j++)
                    {
                        DevComponents.DotNetBar.ButtonItem btnChildItem = new DevComponents.DotNetBar.ButtonItem();
                        string[] info = types[j].ToString().Split('&');
                        btnChildItem.Text = info[0];
                        btnChildItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                        {
                            int RowNum = Dgv_Recommend4Material.CurrentRow.Index;
                            DevComponents.DotNetBar.ButtonItem item = sender1 as DevComponents.DotNetBar.ButtonItem;
                            Dgv_Recommend4Material.Rows[RowNum].Cells[1].Value = item.Parent.Text;
                            Dgv_Recommend4Material.Rows[RowNum].Cells[2].Value = info[0];
                            Dgv_Recommend4Material.Rows[RowNum].Cells[3].Value = info[1];
                            Dgv_Recommend4Material.Rows[RowNum].Cells[4].Value = info[2];
                            Dgv_Recommend4Material.Rows[RowNum].Cells[5].Value = info[3];
                            Dgv_Recommend4Material.Refresh();
                        });
                        btnItem.SubItems.Add(btnChildItem);
                    }
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 6
0
        private void FrmRecommend7_Load(object sender, EventArgs e)
        {
            #region //7�����ּܡ����ϰ��ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "ѡ�����";
                colMaterialChoice.Width = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "��������";
                colMaterial.Width = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialNumber.HeaderText = "����";
                colMaterialNumber.Width = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialRemark = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialRemark.HeaderText = "���";
                colMaterialRemark.Width = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "ɾ����";
                colMaterialDelete.Width = 50;
                Dgv_Recommend7Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend7Material.Columns.Add(colMaterial);
                Dgv_Recommend7Material.Columns.Add(colMaterialNumber);
                Dgv_Recommend7Material.Columns.Add(colMaterialRemark);
                Dgv_Recommend7Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend7Material.Rows.Add();

                object[] strMaterial = new object[] { "�ְ��«", "���ָ�", "��˿����", "��Ŀ��", "��ȫ��", "��˿��" };
                string[] strNumber = new string[] { "         ��", "         m", "          ��", "           m2", "      ��", "         m" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {

                        int RowNum = Dgv_Recommend7Material.CurrentRow.Index;
                        Dgv_Recommend7Material.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strMaterial.Length; j++)
                        {
                            if (btnItem.Text == strMaterial[j].ToString())
                            {
                                Dgv_Recommend7Material.Rows[RowNum].Cells[2].Value = strNumber[j];
                                break;
                            }
                        }
                        Dgv_Recommend7Material.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //7�����ּܡ��Ͷ�������
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "ѡ����";
                colWorktypeChoice.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "��������";
                colWorktype.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "����";
                colWorkNumber.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                Dgv_Recommend7Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend7Labor.Columns.Add(colWorktype);
                Dgv_Recommend7Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend7Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend7Labor.Rows.Add();

                object[] strWork = new object[] { "��ȫԱ", "������ҵ��Ա", "���ӹ�" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend7Labor.CurrentRow.Index;
                        Dgv_Recommend7Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend7Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 7
0
        private void FrmFromSelect_Load(object sender, EventArgs e)
        {
            #region //ÈËÔ±°²ÅÅ
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "Ñ¡Ôñ¹¤ÖÖ";
                colWorktypeChoice.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "¹¤ÖÖÃû³Æ";
                colWorktype.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "ÈËÊý";
                colWorkNumber.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ³ýÐÐ";
                colWorkDelete.Width      = 60;
                Dgv_FS_Staff.Columns.Add(colWorktypeChoice);
                Dgv_FS_Staff.Columns.Add(colWorktype);
                Dgv_FS_Staff.Columns.Add(colWorkNumber);
                Dgv_FS_Staff.Columns.Add(colWorkDelete);
                Dgv_FS_Staff.Rows.Add();

                object[] strWork = new object[] { "¼¼Êõ¹ÜÀí", "°²È«¼à¶½", "ÖÊÁ¿¼ì²â", "²âÁ¿·ÅÏß", "¼Ü×Ó¹¤", "µçº¸¹¤", "ľ¹¤", "ÐÞÀí¹¤", "»ìÄýÍÁ¹¤", "¸Ö½î¹¤" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_FS_Staff.CurrentRow.Index;
                        Dgv_FS_Staff.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_FS_Staff.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //»úе°²Åűí
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "Ñ¡Ôñ»úе";
                colMaterialChoice.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "»úеÃû³Æ";
                colMaterial.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colMaterialNumber.HeaderText = "ÊýÁ¿";
                colMaterialNumber.Width      = 180;
                // DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialRemark = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                // colMaterialRemark.HeaderText = "¹æ¸ñ";
                //colMaterialRemark.Width = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "ɾ³ýÐÐ";
                colMaterialDelete.Width      = 60;
                Dgv_FS_Machine.Columns.Add(colMaterialChoice);
                Dgv_FS_Machine.Columns.Add(colMaterial);
                Dgv_FS_Machine.Columns.Add(colMaterialNumber);
                // Dgv_FS_Machine.Columns.Add(colMaterialRemark);
                Dgv_FS_Machine.Columns.Add(colMaterialDelete);
                Dgv_FS_Machine.Rows.Add();

                object[] strMaterial = new object[] { "´¸×Ó", "µ¥Í·°âÊÖ", "Ô²Å̾â", "ƽÅÙ", "ÊÖµç×ê", "̨×ê", "ÊÖÌáµç¾â", "ÊÖÌáµçÅÙ", "ѹÅÙ", "»î¶¯°âÊÖ", "ÊÖµç×ê", "¿Õѹ»ú", "¸Ö˿ǯ", "Ä«¶·¡¢·ÛÏß´ø", "É°ÂÖÇиî»ú", "ÁãÅä¼þºÍ¹¤¾ßÏä", "Ë®×¼ÒÇ", "¼¤¹â´¹×¼ÒÇ", "ˮƽ³ß", "¸Ö¾í³ß", "Ö±³ß", "¿¿³ß", "Èû¹æ" };
                // string[] strNumber = new string[] { "         ¸ö", "         m", "          ¸ö", "           m2", "      ¸ö", "         m" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_FS_Machine.CurrentRow.Index;
                        Dgv_FS_Machine.Rows[RowNum].Cells[1].Value = btnItem.Text;

                        /*  for (int j = 0; j < strMaterial.Length; j++)
                         * {
                         *  if (btnItem.Text == strMaterial[j].ToString())
                         *     {
                         *         Dgv_FS_Machine.Rows[RowNum].Cells[2].Value = strNumber[j];
                         *         break;
                         *     }
                         * }
                         */
                        Dgv_FS_Machine.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 8
0
        private void FrmRecommend6_Load(object sender, EventArgs e)
        {
            #region //液压升降式整体脚手架技术指标
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType1 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType1.HeaderText = "技术指标";
            colParaType1.Width      = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult1 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult1.HeaderText = "指标值";
            colParaResult1.Width      = 100;
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType2 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType2.HeaderText = "技术指标";
            colParaType2.Width      = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult2 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult2.HeaderText = "指标值";
            colParaResult2.Width      = 100;

            Dgv_Recommend6Para.Columns.Add(colParaType1);
            Dgv_Recommend6Para.Columns.Add(colParaResult1);
            Dgv_Recommend6Para.Columns.Add(colParaType2);
            Dgv_Recommend6Para.Columns.Add(colParaResult2);
            Dgv_Recommend6Para.Rows.Add(9);
            string[] strParaType1   = new string[] { "架体高度", "立杆纵距", "架体允许悬挑长度", "主框架曲线间距离", "主框架间连墙点", "升降同步差", "单千斤顶提升力", "使用工况设计活荷载", "提升速度" };
            string[] strParaResult1 = new string[] { "Xm", "Xm", "Xm", "≤Xm", "≮X个", "≯Xmm", "XKN", "XKN/m2", "XM/小时" };
            string[] strParaType2   = new string[] { "架体宽度", "架体步距", "主框架直线间距离", "主框架间架体迎风面积", "用电总功率", "防坠落距离", "单层提升高度", "提升工况设计活荷载", "" };
            string[] strParaResult2 = new string[] { "Xm", "Xm", "≤Xm", "≯X㎡", "XKW", "≯Xcm", "Xm", "XKN/m2", "" };

            for (int i = 0; i < strParaType1.Length; i++)
            {
                Dgv_Recommend6Para.Rows[i].Cells[0].Value = strParaType1[i];
                Dgv_Recommend6Para.Rows[i].Cells[1].Value = strParaResult1[i];
                Dgv_Recommend6Para.Rows[i].Cells[2].Value = strParaType2[i];
                Dgv_Recommend6Para.Rows[i].Cells[3].Value = strParaResult2[i];
            }
            #endregion

            #region //6液压升降式整体脚手架—材料安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "选择材料";
                colMaterialChoice.Width      = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "材料名称";
                colMaterial.Width      = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialNumber.HeaderText = "数量";
                colMaterialNumber.Width      = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialStandard = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialStandard.HeaderText = "规格";
                colMaterialStandard.Width      = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "删除行";
                colMaterialDelete.Width      = 50;
                Dgv_Recommend6Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend6Material.Columns.Add(colMaterial);
                Dgv_Recommend6Material.Columns.Add(colMaterialNumber);
                Dgv_Recommend6Material.Columns.Add(colMaterialStandard);
                Dgv_Recommend6Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend6Material.Rows.Add();

                object[] strMaterial = new object[] { "无缝钢管", "木脚手板", "冲压钢脚手板", "竹串片脚手板", "竹芭脚手板", "密目安全网", "水平安全网", "直角扣件", "旋转扣件", "对接扣件" };
                string[] strStandard = new string[] { "ф48.3mm×3.6mm", "0.35 kN/m2", "0.30 kN/m2", "0.35 kN/m2", "0.10 kN/m2", "1.8m×6.0m", " ", " ", " ", " " };
                string[] strNumber   = new string[] { "         m", "         m2", "           m2", "           m2", "      m2", "           m2", "           m2", "           个", "           个", "          个" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend6Material.CurrentRow.Index;
                        Dgv_Recommend6Material.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strMaterial.Length; j++)
                        {
                            if (btnItem.Text == strMaterial[j].ToString())
                            {
                                Dgv_Recommend6Material.Rows[RowNum].Cells[2].Value = strNumber[j];
                                Dgv_Recommend6Material.Rows[RowNum].Cells[3].Value = strStandard[j];
                                break;
                            }
                        }
                        Dgv_Recommend6Material.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //6液压升降式整体脚手架—人员安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "选择职务";
                colWorktypeChoice.Width      = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "职务名称";
                colWorktype.Width      = 120;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "人数";
                colWorkNumber.Width      = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorkduty = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorkduty.HeaderText = "职责";
                colWorkduty.Width      = 200;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                Dgv_Recommend6Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend6Labor.Columns.Add(colWorktype);
                Dgv_Recommend6Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend6Labor.Columns.Add(colWorkduty);
                Dgv_Recommend6Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend6Labor.Rows.Add();

                object[] strWork = new object[] { "负责人", "项目经理", "安全员", "资料员", "操作工", "焊工", "机械工" };
                object[] strDuty = new object[] { "负责导轨式液压升降脚手架施工组织设计的编制、液压升降脚手架工程总协调", "负责与上级、兄弟单位有关的协调,架体安拆、升降、安全检查", "负责架体的安全检查、签证", "负责相应资料的收集和上报工作", "负责升降、支座位移、日常保养工作。", "负责现场特殊情况需要焊接的工作。", "设备维护保养工作。" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend6Labor.CurrentRow.Index;
                        Dgv_Recommend6Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strWork.Length; j++)
                        {
                            if (btnItem.Text == strWork[j].ToString())
                            {
                                Dgv_Recommend6Labor.Rows[RowNum].Cells[3].Value = strDuty[j];
                                break;
                            }
                        }
                        Dgv_Recommend6Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 9
0
        private void FrmRecommend2_Load(object sender, EventArgs e)
        {
            #region //2扣件式钢管脚手架(落地+悬挑)—具体搭设情况
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colTaskChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colTaskChoice.HeaderText = "选择项目";
                colTaskChoice.Width      = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colTask = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colTask.HeaderText = "项目名称";
                colTask.Width      = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colTaskPlace = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colTaskPlace.HeaderText = "搭设部位";
                colTaskPlace.Width      = 150;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colTaskhigh = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colTaskhigh.HeaderText = "搭设高度";
                colTaskhigh.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colTaskDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colTaskDelete.HeaderText = "删除行";
                colTaskDelete.Width      = 50;
                Dgv_Recommend2Task.Columns.Add(colTaskChoice);
                Dgv_Recommend2Task.Columns.Add(colTask);
                Dgv_Recommend2Task.Columns.Add(colTaskPlace);
                Dgv_Recommend2Task.Columns.Add(colTaskhigh);
                Dgv_Recommend2Task.Columns.Add(colTaskDelete);
                Dgv_Recommend2Task.Rows.Add();

                object[] strTask      = new object[] { "第一挑", "第二挑", "第三挑", "第X挑" };
                string[] strTaskPlace = new string[] { "XX层~XX层", "XX层~XX层", "XX层~XX层", "XX层~屋面", };
                string[] strTaskHigh  = new string[] { "         m", "         m", "           m", "           m" };
                for (int i = 0; i < strTask.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strTask[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend2Task.CurrentRow.Index;
                        Dgv_Recommend2Task.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strTask.Length; j++)
                        {
                            if (btnItem.Text == strTask[j].ToString())
                            {
                                Dgv_Recommend2Task.Rows[RowNum].Cells[2].Value = strTaskPlace[j];
                                Dgv_Recommend2Task.Rows[RowNum].Cells[3].Value = strTaskHigh[j];
                                break;
                            }
                        }
                        Dgv_Recommend2Task.Refresh();
                    });
                    colTaskChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //2扣件式钢管脚手架(落地+悬挑)—材料安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "选择材料";
                colMaterialChoice.Width      = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "材料名称";
                colMaterial.Width      = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialNumber.HeaderText = "数量";
                colMaterialNumber.Width      = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialStandard = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialStandard.HeaderText = "规格";
                colMaterialStandard.Width      = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "删除行";
                colMaterialDelete.Width      = 50;
                Dgv_Recommend2Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend2Material.Columns.Add(colMaterial);
                Dgv_Recommend2Material.Columns.Add(colMaterialNumber);
                Dgv_Recommend2Material.Columns.Add(colMaterialStandard);
                Dgv_Recommend2Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend2Material.Rows.Add();

                object[] strMaterial = new object[] { "无缝钢管", "木脚手板", "冲压钢脚手板", "竹串片脚手板", "竹芭脚手板", "密目安全网", "水平安全网", "直角扣件", "旋转扣件", "对接扣件" };
                string[] strStandard = new string[] { "ф48.3mm×3.6mm", "0.35 kN/m2", "0.30 kN/m2", "0.35 kN/m2", "0.10 kN/m2", "1.8m×6.0m", " ", " ", " ", " " };
                string[] strNumber   = new string[] { "         m", "         m2", "           m2", "           m2", "      m2", "           m2", "           m2", "           个", "           个", "          个" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend2Material.CurrentRow.Index;
                        Dgv_Recommend2Material.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strMaterial.Length; j++)
                        {
                            if (btnItem.Text == strMaterial[j].ToString())
                            {
                                Dgv_Recommend2Material.Rows[RowNum].Cells[2].Value = strNumber[j];
                                Dgv_Recommend2Material.Rows[RowNum].Cells[3].Value = strStandard[j];
                                break;
                            }
                        }
                        Dgv_Recommend2Material.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //2扣件式钢管脚手架(落地+悬挑)—劳动力安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "选择工种";
                colWorktypeChoice.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "工种名称";
                colWorktype.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "人数";
                colWorkNumber.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                Dgv_Recommend2Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend2Labor.Columns.Add(colWorktype);
                Dgv_Recommend2Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend2Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend2Labor.Rows.Add();

                object[] strWork = new object[] { "技术管理", "安全监督", "质量检查", "测量放线", "架子工" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend2Labor.CurrentRow.Index;
                        Dgv_Recommend2Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend2Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //2扣件式钢管脚手架(落地+悬挑)—机具安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colToolChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colToolChoice.HeaderText = "选择材料";
                colToolChoice.Width      = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colTool = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colTool.HeaderText = "机具名称";
                colTool.Width      = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colToolNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colToolNumber.HeaderText = "数量";
                colToolNumber.Width      = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colToollRemark = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colToollRemark.HeaderText = "备注";
                colToollRemark.Width      = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colToolDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colToolDelete.HeaderText = "删除行";
                colToolDelete.Width      = 50;
                Dgv_Recommend2Tool.Columns.Add(colToolChoice);
                Dgv_Recommend2Tool.Columns.Add(colTool);
                Dgv_Recommend2Tool.Columns.Add(colToolNumber);
                Dgv_Recommend2Tool.Columns.Add(colToollRemark);
                Dgv_Recommend2Tool.Columns.Add(colToolDelete);
                Dgv_Recommend2Tool.Rows.Add();

                object[] strTool       = new object[] { "架子扳手", "力矩扳手", "倒    链" };
                string[] strRemark     = new string[] { " 架子工搭设和拆除架子用", " 检查架子扣件拧紧力度是否达到要求", "调整架子水平弯曲度 " };
                string[] strToolNumber = new string[] { "       把", "       把", "       把", };
                for (int i = 0; i < strTool.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strTool[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend2Tool.CurrentRow.Index;
                        Dgv_Recommend2Tool.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strTool.Length; j++)
                        {
                            if (btnItem.Text == strTool[j].ToString())
                            {
                                Dgv_Recommend2Tool.Rows[RowNum].Cells[2].Value = strToolNumber[j];
                                Dgv_Recommend2Tool.Rows[RowNum].Cells[3].Value = strRemark[j];
                                break;
                            }
                        }
                        Dgv_Recommend2Tool.Refresh();
                    });
                    colToolChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 10
0
        private void FrmRecommend6_Load(object sender, EventArgs e)
        {
            #region //Һѹ����ʽ������ּܼ���ָ��
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType1 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType1.HeaderText = "����ָ��";
            colParaType1.Width = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult1 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult1.HeaderText = "ָ��ֵ";
            colParaResult1.Width = 100;
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType2 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType2.HeaderText = "����ָ��";
            colParaType2.Width = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult2 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult2.HeaderText = "ָ��ֵ";
            colParaResult2.Width = 100;

            Dgv_Recommend6Para.Columns.Add(colParaType1);
            Dgv_Recommend6Para.Columns.Add(colParaResult1);
            Dgv_Recommend6Para.Columns.Add(colParaType2);
            Dgv_Recommend6Para.Columns.Add(colParaResult2);
            Dgv_Recommend6Para.Rows.Add(9);
            string[] strParaType1 = new string[] { "����߶�", "�����ݾ�", "���������������", "��������߼����", "����ܼ���ǽ��", "����ͬ����", "��ǧ�ﶥ������", "ʹ�ù�����ƻ����", "�����ٶ�" };
            string[] strParaResult1 = new string[] { "Xm", "Xm", "Xm", "��Xm", "��X��", "��Xmm", "XKN", "XKN/m2", "XM/Сʱ"};
            string[] strParaType2 = new string[] { "������", "���岽��", "�����ֱ�߼����", "����ܼ����ӭ�����", "�õ��ܹ���", "��׹�����", "���������߶�", "����������ƻ����", ""};
            string[] strParaResult2 = new string[] { "Xm", "Xm", "��Xm", "��X�O", "XKW", "��Xcm", "Xm", "XKN/m2","" };

            for (int i = 0; i < strParaType1.Length; i++)
            {
                Dgv_Recommend6Para.Rows[i].Cells[0].Value = strParaType1[i];
                Dgv_Recommend6Para.Rows[i].Cells[1].Value = strParaResult1[i];
                Dgv_Recommend6Para.Rows[i].Cells[2].Value = strParaType2[i];
                Dgv_Recommend6Para.Rows[i].Cells[3].Value = strParaResult2[i];
            }
            #endregion

            #region //6Һѹ����ʽ������ּܡ����ϰ��ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "ѡ�����";
                colMaterialChoice.Width = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "��������";
                colMaterial.Width = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialNumber.HeaderText = "����";
                colMaterialNumber.Width = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialStandard = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialStandard.HeaderText = "���";
                colMaterialStandard.Width = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "ɾ����";
                colMaterialDelete.Width = 50;
                Dgv_Recommend6Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend6Material.Columns.Add(colMaterial);
                Dgv_Recommend6Material.Columns.Add(colMaterialNumber);
                Dgv_Recommend6Material.Columns.Add(colMaterialStandard);
                Dgv_Recommend6Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend6Material.Rows.Add();

                object[] strMaterial = new object[] { "�޷�ֹ�", "ľ���ְ�", "��ѹ�ֽ��ְ�", "��Ƭ���ְ�", "��Ž��ְ�", "��Ŀ��ȫ��", "ˮƽ��ȫ��", "ֱ�ǿۼ�", "��ת�ۼ�", "�Խӿۼ�" };
                string[] strStandard = new string[] { "��48.3mm��3.6mm", "0.35 kN/m2", "0.30 kN/m2", "0.35 kN/m2", "0.10 kN/m2", "1.8m��6.0m", " ", " ", " ", " " };
                string[] strNumber = new string[] { "         m", "         m2", "           m2", "           m2", "      m2", "           m2", "           m2", "           ��", "           ��", "          ��" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {

                        int RowNum = Dgv_Recommend6Material.CurrentRow.Index;
                        Dgv_Recommend6Material.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strMaterial.Length; j++)
                        {
                            if (btnItem.Text == strMaterial[j].ToString())
                            {
                                Dgv_Recommend6Material.Rows[RowNum].Cells[2].Value = strNumber[j];
                                Dgv_Recommend6Material.Rows[RowNum].Cells[3].Value = strStandard[j];
                                break;
                            }
                        }
                        Dgv_Recommend6Material.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //6Һѹ����ʽ������ּܡ���Ա���ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "ѡ��ְ��";
                colWorktypeChoice.Width = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "ְ������";
                colWorktype.Width = 120;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "����";
                colWorkNumber.Width = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorkduty = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorkduty.HeaderText = "ְ��";
                colWorkduty.Width = 200;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                Dgv_Recommend6Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend6Labor.Columns.Add(colWorktype);
                Dgv_Recommend6Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend6Labor.Columns.Add(colWorkduty);
                Dgv_Recommend6Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend6Labor.Rows.Add();

                object[] strWork = new object[] { "������", "��Ŀ����", "��ȫԱ", "����Ա", "������", "����", "��е��" };
                object[] strDuty = new object[] { "���𵼹�ʽҺѹ�������ּ�ʩ����֯��Ƶı��ơ�Һѹ�������ּܹ�����Э��", "�������ϼ����ֵܵ�λ�йص�Э�������尲����������ȫ���", "�������İ�ȫ��顢ǩ֤", "������Ӧ���ϵ��ռ����ϱ�����", "����������֧��λ�ơ��ճ�����������", "�����ֳ����������Ҫ���ӵĹ�����", "�豸ά������������" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend6Labor.CurrentRow.Index;
                        Dgv_Recommend6Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strWork.Length; j++)
                        {
                            if (btnItem.Text == strWork[j].ToString())
                            {
                                Dgv_Recommend6Labor.Rows[RowNum].Cells[3].Value = strDuty[j];
                                break;
                            }
                        }
                        Dgv_Recommend6Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
        //建立 DataGrid 欄位
        private void CreateColumns()
        {
            this.dg.Rows.Clear();
            this.dg.Columns.Clear();
            DataGridViewColumn colStudNumber = this.makeColumn("學號");
            colStudNumber.Frozen = true;
            colStudNumber.Width = 120;
            colStudNumber.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dg.Columns.Add(colStudNumber);

            DataGridViewColumn colName = this.makeColumn("姓名");
            colName.Frozen = true;
            this.dg.Columns.Add(colName);

            DataGridViewColumn colName_No = this.makeColumn("缺課次數");
            colName_No.Frozen = true;
            colName_No.ReadOnly = true;
            colName_No.Width = 40;
            this.dg.Columns.Add(colName_No);

            DataGridViewColumn colName_Cancel = new DataGridViewCheckBoxColumn();
            colName_Cancel.HeaderText = "停修";
            colName_Cancel.Width = 40;
            colName_Cancel.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            colName_Cancel.Frozen = true;
            colName_Cancel.ReadOnly = true;
            colName_Cancel.SortMode = DataGridViewColumnSortMode.Automatic;
            this.dg.Columns.Add(colName_Cancel);

            //寄發缺課通知(勾選)
            DataGridViewColumn colSendMail_Checker = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
            colSendMail_Checker.HeaderText = "寄發缺課通知";
            colSendMail_Checker.Width = 60;
            colSendMail_Checker.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            colSendMail_Checker.Frozen = true;
            colSendMail_Checker.ReadOnly = false;
            colSendMail_Checker.SortMode = DataGridViewColumnSortMode.Automatic;
            this.dg.Columns.Add(colSendMail_Checker);

            //最後寄發通知時間
            DataGridViewColumn colSendMail_Time = new DataGridViewTextBoxColumn();
            colSendMail_Time.HeaderText = "最後寄發\n通知時間";
            colSendMail_Time.Width = 150;
            colSendMail_Time.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            colSendMail_Time.Frozen = true;
            colSendMail_Time.ReadOnly = true;
            colSendMail_Time.SortMode = DataGridViewColumnSortMode.Automatic;
            this.dg.Columns.Add(colSendMail_Time);

            //最後寄發通知樣版
            DataGridViewColumn colSendMail_Template = new DataGridViewTextBoxColumn();
            colSendMail_Template.HeaderText = "最後寄發\n通知樣版";
            colSendMail_Template.Width = 100;
            colSendMail_Template.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            colSendMail_Template.Frozen = true;
            colSendMail_Template.ReadOnly = true;
            colSendMail_Template.SortMode = DataGridViewColumnSortMode.Automatic;
            this.dg.Columns.Add(colSendMail_Template);

            this.SectionIDs = new List<int>();
            this.dicCourseSections = new Dictionary<string, DataRow>();
            foreach(DataRow dr in this.dtCourseSections.Rows)
            {
                string start_date = DateTime.Parse(dr["starttime"].ToString()).ToString("MM/dd");
                string start_time = DateTime.Parse(dr["starttime"].ToString()).ToString("HH:mm");

                string text = start_date + "\r\n" + start_time;
                int column_index = this.dg.Columns.Add(this.makeColumn(text));

                DatagridViewCheckBoxHeaderCell cbHeader = new DatagridViewCheckBoxHeaderCell(this.Font);
                cbHeader.OnCheckBoxClicked += new CheckBoxClickedHandler(cbHeader_OnCheckBoxClicked);
                //this.dg.Columns[column_index].Width = 120;
                this.dg.Columns[column_index].HeaderCell = cbHeader;
                //this.dg.Columns[column_index].AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader;
                this.dg.Columns[column_index].HeaderText = text;
                this.dg.Columns[column_index].HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopCenter;
                this.dg.Columns[column_index].SortMode = DataGridViewColumnSortMode.Programmatic;

                this.dg.Columns[column_index].Tag = new object[] { DateTime.Parse(dr["starttime"] + ""), DateTime.Parse(dr["endtime"] + "") };
                this.SectionIDs.Add(int.Parse(dr["uid"].ToString()));
                this.dicCourseSections.Add(dr["uid"].ToString(), dr);
            }
        }
Esempio n. 12
0
        private void FrmRecommend3_Load(object sender, EventArgs e)
        {
            #region //����������
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType1 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType1.HeaderText = "��������";
            colParaType1.Width = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult1 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult1.HeaderText = "����ֵ";
            colParaResult1.Width = 100;
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType2 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType2.HeaderText = "��������";
            colParaType2.Width = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult2 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult2.HeaderText = "����ֵ";
            colParaResult2.Width = 100;

            Dgv_Recommend3Para.Columns.Add(colParaType1);
            Dgv_Recommend3Para.Columns.Add(colParaResult1);
            Dgv_Recommend3Para.Columns.Add(colParaType2);
            Dgv_Recommend3Para.Columns.Add(colParaResult2);
            Dgv_Recommend3Para.Rows.Add(6);
            string[] strParaType1 = new string[] { "���ּܴ���߶�H(m)", "����������la(m)", "���˲���h(m)", "�����������˸�h1(m)", "�������뽨�������a(mm)", "��ǽ�����÷�ʽ"};
            string[] strParaResult1 = new string[] { "X", "X", "X", "X", "X", "��������/��������" };
            string[] strParaType2 = new string[] { "���ּ���������賤��L(m)", "���˺�����lb(m)", "���ּ��ܲ���n", "�ݺ���ɨ�ظ���ؾ���h2(mm)", "���ְ����跽ʽ",""};
            string[] strParaResult2 = new string[] { "X", "X", "X", "X", "X��1��", " " };

            for (int i = 0; i < strParaType1.Length; i++)
            {
                Dgv_Recommend3Para.Rows[i].Cells[0].Value = strParaType1[i];
                Dgv_Recommend3Para.Rows[i].Cells[1].Value = strParaResult1[i];
                Dgv_Recommend3Para.Rows[i].Cells[2].Value = strParaType2[i];
                Dgv_Recommend3Para.Rows[i].Cells[3].Value = strParaResult2[i];
            }
            #endregion

            #region //3���ʽ���ּܡ��Ͷ������ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "ѡ����";
                colWorktypeChoice.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "��������";
                colWorktype.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "����";
                colWorkNumber.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                Dgv_Recommend3Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend3Labor.Columns.Add(colWorktype);
                Dgv_Recommend3Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend3Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend3Labor.Rows.Add();

                object[] strWork = new object[] { "��������", "��ȫ�ල", "�������", "��������", "���ӹ�" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend3Labor.CurrentRow.Index;
                        Dgv_Recommend3Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend3Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region//3���ʽ���ּܡ����ϰ��ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "ѡ�����";
                colMaterialChoice.Width = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialName = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialName.HeaderText = "����";
                colMaterialName.Width = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialType = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialType.HeaderText = "�ͺ�";
                colMaterialType.Width = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialStandard= new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialStandard.HeaderText = "���(mm)";
                colMaterialStandard.Width = 110;
                DevComponents.DotNetBar.Controls.DataGridViewDoubleInputColumn  colMarketWeight= new DevComponents.DotNetBar.Controls.DataGridViewDoubleInputColumn();
                colMarketWeight.HeaderText = "�����(kg)";
                colMarketWeight.Width = 75;
                DevComponents.DotNetBar.Controls.DataGridViewDoubleInputColumn colDesignWeight = new DevComponents.DotNetBar.Controls.DataGridViewDoubleInputColumn();
                colDesignWeight.HeaderText = "�������(kg)";
                colDesignWeight.Width = 75;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "ɾ����";
                colMaterialDelete.Width = 50;
                Dgv_Recommend3Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend3Material.Columns.Add(colMaterialName);
                Dgv_Recommend3Material.Columns.Add(colMaterialType);
                Dgv_Recommend3Material.Columns.Add(colMaterialStandard);
                Dgv_Recommend3Material.Columns.Add(colMarketWeight);
                Dgv_Recommend3Material.Columns.Add(colDesignWeight);
                Dgv_Recommend3Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend3Material.Rows.Add();
                object[,] material = new object[,]{
                    {"����",new string[]{"LG-120&��48��3.5��1200&7.41&7.05",  "LG-180&��48��3.5��1800&10.67&10.19&", "LG-240&��48��3.5��2400&14.02&13.34&", "LG-300&��48��3.5��3000&17.31&16.48&"}},
                    {"���",new string[]{"HG-30&��48��3.5��300&1.67&1.32", "HG-60&��48��3.5��600&2.82&2.47", "HG-90&��48��3.5��900&3.97&3.63", "HG-120&��48��3.5��1200&5.12&4.78", "HG-150&��48��3.5��1500&6.28&5.93", "HG-180&��48��3.5��180&7.43&7.08"}},
                    {"����",new string[]{"JHG-90&��48��3.5��900&5.28&4.37 ", "JHG-120	&��48��3.5��1200	&6.43&5.52","JHG-120+30&��48��3.5��(1200+300)&7.74	&6.85","JHG-120+60&��48��3.5��(1200+600)&9.69&8.16"}},
                    {"ר��б��",new string[]{"XG-0912&��48��3.5��150&7.11&6.33", "XG-1212&��48��3.5��170&7.87&7.03","XG-1218&��48��3.5��2160&9.66&8.66","XG-1518&��48��3.5��2340&10.34&9.30","XG-1818&��48��3.5��2550	&11.13&10.04"}},
                    {"ר��б��",new string[]{"ZXG-0912	&��48��3.5��1270&0&5.89 ", " ZXG-1212	&��48��3.5��1500&0&6.76"," ZXG-1218	&��48��3.5��1920&0&8.73"}},
                    {"ʮ�ֳ�",new string[]{"XZC-0912&��30��2.5��1390&0&4.72 ", " XZC-1212&��30��2.5��1560&0&5.31"," XZC-1218	&��30��2.5��2060&0&7"}},
                    {"խ����",new string[]{"TL-30	&���300	&1.68	&1.53 "}},
                    {"������",new string[]{" TL-60&���600	&9.30	&8.60" }},
                    {"����������",new string[]{"LLX	&��12	&0&0.18" }},
                    {"�ɵ�����",new string[]{"KTZ-45	&�ɵ���Χ��300	&0&5.82" , " KTZ-60&�ɵ���Χ��450&0&7.12" , "KTZ-75	&�ɵ���Χ��600	&0&8.5"}},
                    {"�ɵ�����",new string[]{"KTC-45	&�ɵ���Χ��300	&0&7.01" , "KTC-60&�ɵ���Χ��450&0&8.31" , "KTC-75	&�ɵ���Χ��600	&0&9.69" }},
                    {"���ְ�",new string[]{"JB-120&1200x270	&0&12.8" , "JB-150&1500x270	&0&15" , "JB-180&1800x270	&	0&17.9" }},
                    {"����",new string[]{"JT-255	&2546��530	&0&34.7"}},
                };
                for (int i = 0; i < 13; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)material[i, 0];
                    string[] types = (string[])material[i, 1];
                    for (int j = 0; j < types.Length; j++)
                    {
                        DevComponents.DotNetBar.ButtonItem btnChildItem = new DevComponents.DotNetBar.ButtonItem();
                        string[] info = types[j].ToString().Split('&');
                        btnChildItem.Text = info[0];
                        btnChildItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                        {
                            int RowNum = Dgv_Recommend3Material.CurrentRow.Index;
                            DevComponents.DotNetBar.ButtonItem item = sender1 as DevComponents.DotNetBar.ButtonItem;
                            Dgv_Recommend3Material.Rows[RowNum].Cells[1].Value = item.Parent.Text;
                            Dgv_Recommend3Material.Rows[RowNum].Cells[2].Value = info[0];
                            Dgv_Recommend3Material.Rows[RowNum].Cells[3].Value = info[1];
                            Dgv_Recommend3Material.Rows[RowNum].Cells[4].Value = info[2];
                            Dgv_Recommend3Material.Rows[RowNum].Cells[5].Value = info[3];
                            Dgv_Recommend3Material.Refresh();
                        });
                        btnItem.SubItems.Add(btnChildItem);
                    }
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 13
0
        private void FrmRecommend2_Load(object sender, EventArgs e)
        {
            #region //2�ۼ�ʽ�ֹܽ��ּܣ����+����)������������
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colTaskChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colTaskChoice.HeaderText = "ѡ����Ŀ";
                colTaskChoice.Width = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colTask = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colTask.HeaderText = "��Ŀ����";
                colTask.Width = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colTaskPlace = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colTaskPlace.HeaderText = "���貿λ";
                colTaskPlace.Width = 150;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colTaskhigh = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colTaskhigh.HeaderText = "����߶�";
                colTaskhigh.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colTaskDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colTaskDelete.HeaderText = "ɾ����";
                colTaskDelete.Width = 50;
                Dgv_Recommend2Task.Columns.Add(colTaskChoice);
                Dgv_Recommend2Task.Columns.Add(colTask);
                Dgv_Recommend2Task.Columns.Add(colTaskPlace);
                Dgv_Recommend2Task.Columns.Add(colTaskhigh);
                Dgv_Recommend2Task.Columns.Add(colTaskDelete);
                Dgv_Recommend2Task.Rows.Add();

                object[] strTask = new object[] { "��һ��", "�ڶ���", "������", "��X��"};
                string[] strTaskPlace = new string[] { "XX�㡫XX��", "XX�㡫XX��", "XX�㡫XX��", "XX�㡫����", };
                string[] strTaskHigh = new string[] { "         m", "         m", "           m", "           m" };
                for (int i = 0; i < strTask.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strTask[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {

                        int RowNum = Dgv_Recommend2Task.CurrentRow.Index;
                        Dgv_Recommend2Task.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strTask.Length; j++)
                        {
                            if (btnItem.Text == strTask[j].ToString())
                            {
                                Dgv_Recommend2Task.Rows[RowNum].Cells[2].Value = strTaskPlace[j];
                                Dgv_Recommend2Task.Rows[RowNum].Cells[3].Value = strTaskHigh[j];
                                break;
                            }
                        }
                        Dgv_Recommend2Task.Refresh();
                    });
                    colTaskChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //2�ۼ�ʽ�ֹܽ��ּܣ����+����)�����ϰ��ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "ѡ�����";
                colMaterialChoice.Width = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "��������";
                colMaterial.Width = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialNumber.HeaderText = "����";
                colMaterialNumber.Width = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialStandard = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialStandard.HeaderText = "���";
                colMaterialStandard.Width = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "ɾ����";
                colMaterialDelete.Width = 50;
                Dgv_Recommend2Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend2Material.Columns.Add(colMaterial);
                Dgv_Recommend2Material.Columns.Add(colMaterialNumber);
                Dgv_Recommend2Material.Columns.Add(colMaterialStandard);
                Dgv_Recommend2Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend2Material.Rows.Add();

                object[] strMaterial = new object[] { "�޷�ֹ�", "ľ���ְ�", "��ѹ�ֽ��ְ�", "��Ƭ���ְ�", "��Ž��ְ�", "��Ŀ��ȫ��", "ˮƽ��ȫ��", "ֱ�ǿۼ�", "��ת�ۼ�", "�Խӿۼ�" };
                string[] strStandard = new string[] { "��48.3mm��3.6mm", "0.35 kN/m2", "0.30 kN/m2", "0.35 kN/m2", "0.10 kN/m2", "1.8m��6.0m", " ", " ", " ", " " };
                string[] strNumber = new string[] { "         m", "         m2", "           m2", "           m2", "      m2", "           m2", "           m2", "           ��", "           ��", "          ��" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {

                        int RowNum = Dgv_Recommend2Material.CurrentRow.Index;
                        Dgv_Recommend2Material.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strMaterial.Length; j++)
                        {
                            if (btnItem.Text == strMaterial[j].ToString())
                            {
                                Dgv_Recommend2Material.Rows[RowNum].Cells[2].Value = strNumber[j];
                                Dgv_Recommend2Material.Rows[RowNum].Cells[3].Value = strStandard[j];
                                break;
                            }
                        }
                        Dgv_Recommend2Material.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //2�ۼ�ʽ�ֹܽ��ּܣ����+����)���Ͷ������ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "ѡ����";
                colWorktypeChoice.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "��������";
                colWorktype.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "����";
                colWorkNumber.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                Dgv_Recommend2Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend2Labor.Columns.Add(colWorktype);
                Dgv_Recommend2Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend2Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend2Labor.Rows.Add();

                object[] strWork = new object[] { "��������", "��ȫ�ල", "�������", "��������", "���ӹ�" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend2Labor.CurrentRow.Index;
                        Dgv_Recommend2Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend2Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //2�ۼ�ʽ�ֹܽ��ּܣ����+����)�����߰��ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colToolChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colToolChoice.HeaderText = "ѡ�����";
                colToolChoice.Width = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colTool = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colTool.HeaderText = "��������";
                colTool.Width = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colToolNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colToolNumber.HeaderText = "����";
                colToolNumber.Width = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colToollRemark = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colToollRemark.HeaderText = "��ע";
                colToollRemark.Width = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colToolDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colToolDelete.HeaderText = "ɾ����";
                colToolDelete.Width = 50;
                Dgv_Recommend2Tool.Columns.Add(colToolChoice);
                Dgv_Recommend2Tool.Columns.Add(colTool);
                Dgv_Recommend2Tool.Columns.Add(colToolNumber);
                Dgv_Recommend2Tool.Columns.Add(colToollRemark);
                Dgv_Recommend2Tool.Columns.Add(colToolDelete);
                Dgv_Recommend2Tool.Rows.Add();

                object[] strTool = new object[] { "���Ӱ���", "���ذ���", "��    ��" };
                string[] strRemark = new string[] { " ���ӹ�����Ͳ��������", " �����ӿۼ�š�������Ƿ�ﵽҪ��", "��������ˮƽ������ " };
                string[] strToolNumber = new string[] { "       ��", "       ��", "       ��", };
                for (int i = 0; i < strTool.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strTool[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend2Tool.CurrentRow.Index;
                        Dgv_Recommend2Tool.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strTool.Length; j++)
                        {
                            if (btnItem.Text == strTool[j].ToString())
                            {
                                Dgv_Recommend2Tool.Rows[RowNum].Cells[2].Value = strToolNumber[j];
                                Dgv_Recommend2Tool.Rows[RowNum].Cells[3].Value = strRemark[j];
                                break;
                            }
                        }
                        Dgv_Recommend2Tool.Refresh();
                    });
                    colToolChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 14
0
        private void FrmRecommend4_Load(object sender, EventArgs e)
        {
            #region //具体搭设情况
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType1 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType1.HeaderText = "参数名称";
            colParaType1.Width      = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult1 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult1.HeaderText = "参数值";
            colParaResult1.Width      = 100;
            DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn colParaType2 = new DevComponents.DotNetBar.Controls.DataGridViewLabelXColumn();
            colParaType2.HeaderText = "参数名称";
            colParaType2.Width      = 180;
            DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colParaResult2 = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
            colParaResult2.HeaderText = "参数值";
            colParaResult2.Width      = 100;

            Dgv_Recommend4Para.Columns.Add(colParaType1);
            Dgv_Recommend4Para.Columns.Add(colParaResult1);
            Dgv_Recommend4Para.Columns.Add(colParaType2);
            Dgv_Recommend4Para.Columns.Add(colParaResult2);
            Dgv_Recommend4Para.Rows.Add(6);
            string[] strParaType1   = new string[] { "脚手架搭设高度H(m)", "立杆纵向间距la(m)", "立杆步距h(m)", "顶部防护栏杆高h1(m)", "内立杆离建筑物距离a(mm)", "连墙件布置方式" };
            string[] strParaResult1 = new string[] { "X", "X", "X", "X", "X", "两步两跨/两步三跨" };
            string[] strParaType2   = new string[] { "脚手架沿纵向搭设长度L(m)", "立杆横向间距lb(m)", "脚手架总步数n", "纵横向扫地杆离地距离h2(mm)", "脚手板铺设方式", "" };
            string[] strParaResult2 = new string[] { "X", "X", "X", "X", "X步1设", " " };

            for (int i = 0; i < strParaType1.Length; i++)
            {
                Dgv_Recommend4Para.Rows[i].Cells[0].Value = strParaType1[i];
                Dgv_Recommend4Para.Rows[i].Cells[1].Value = strParaResult1[i];
                Dgv_Recommend4Para.Rows[i].Cells[2].Value = strParaType2[i];
                Dgv_Recommend4Para.Rows[i].Cells[3].Value = strParaResult2[i];
            }
            #endregion

            #region //4承插型盘扣式钢管脚手架—劳动力安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "选择工种";
                colWorktypeChoice.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "工种名称";
                colWorktype.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "人数";
                colWorkNumber.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                Dgv_Recommend4Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend4Labor.Columns.Add(colWorktype);
                Dgv_Recommend4Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend4Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend4Labor.Rows.Add();

                object[] strWork = new object[] { "技术管理", "安全监督", "质量检查", "测量放线", "架子工" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend4Labor.CurrentRow.Index;
                        Dgv_Recommend4Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend4Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region//4承插型盘扣式钢管脚手架—材料安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "选择材料";
                colMaterialChoice.Width      = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialName = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialName.HeaderText = "名称";
                colMaterialName.Width      = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialType = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialType.HeaderText = "型号";
                colMaterialType.Width      = 80;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialStandard = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialStandard.HeaderText = "规格(mm)";
                colMaterialStandard.Width      = 110;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialQuality = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialQuality.HeaderText = "材质 ";
                colMaterialQuality.Width      = 75;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colDesignWeight = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colDesignWeight.HeaderText = "理论重量(kg)";
                colDesignWeight.Width      = 75;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "删除行";
                colMaterialDelete.Width      = 50;
                Dgv_Recommend4Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend4Material.Columns.Add(colMaterialName);
                Dgv_Recommend4Material.Columns.Add(colMaterialType);
                Dgv_Recommend4Material.Columns.Add(colMaterialStandard);
                Dgv_Recommend4Material.Columns.Add(colMaterialQuality);
                Dgv_Recommend4Material.Columns.Add(colDesignWeight);
                Dgv_Recommend4Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend4Material.Rows.Add();
                object[,] material = new object[, ] {
                    { "立杆", new string[] { " A-LG-500	&	Φ60×3.2×500	&	Q345A	&	3.75 ", " A-LG-1000	&	Φ60×3.2×1000	&	Q345A	&	6.65 ", " A-LG-1500	&	Φ60×3.2×1500	&	Q345A	&	9.60 ", " A-LG-2000	&	Φ60×3.2×2000	&	Q345A	&	12.50 ", " A-LG-2500	&	Φ60×3.2×2500	&	Q345A	&	15.50 ", " A-LG-3000	&	Φ60×3.2×3000	&	Q345A	&	18.40 ", " B-LG-500	&	Φ48×3.2×500	&	Q345A	&	2.95 ", " B-LG-1000	&	Φ48×3.2×1000	&	Q345A	&	5.30 ", " B-LG-1500	&	Φ48×3.2×1500	&	Q345A	&	7.64 ", " B-LG-2000	&	Φ48×3.2×2000	&	Q345A	&	9.90 ", " B-LG-2500	&	Φ48×3.2×2500	&	Q345A	&	12.30 ", " B-LG-3000	&	Φ48×3.2×3000	&	Q345A	&	14.65 "} },
                    { "水平杆", new string[] { " A-SG-300	&	Φ48×2.5×240	&	Q235B	&	1.40 ", " A-SG-600	&	Φ48×2.5×540	&	Q235B	&	2.30 ", " A-SG-900	&	Φ48×2.5×840	&	Q235B	&	3.20 ", " A-SG-1200	&	Φ48×2.5×1140	&	Q235B	&	4.10 ", " A-SG-1500	&	Φ48×2.5×1440	&	Q235B	&	5.00 ", " A-SG-1800	&	Φ48×2.5×1740	&	Q235B	&	5.90 ", " A-SG-2000	&	Φ48×2.5×1940	&	Q235B	&	6.50 ", " B-SG-300	&	Φ42×2.5×240	&	Q235B	&	1.30 ", " B-SG-600	&	Φ42×2.5×540	&	Q235B	&	2.00 ", " B-SG-900	&	Φ42×2.5×840	&	Q235B	&	2.80 ", " B-SG-1200	&	Φ42×2.5×1140	&	Q235B	&	3.60 ", " B-SG-1500	&	Φ42×2.5×1440	&	Q235B	&	4.30 ", " B-SG-1800	&	Φ42×2.5×1740	&	Q235B	&	5.10 ", " B-SG-2000	&	Φ42×2.5×1940	&	Q235B	&	5.60 "} },
                    { "竖向斜杆", new string[] { " A-XG-300×1000	&	Φ48×2.5×1008	&	Q195	&	4.10 ", " A-XG-300×1500	&	Φ48×2.5×1506	&	Q195	&	5.50 ", " A-XG-600×1000	&	Φ48×2.5×1089	&	Q195	&	4.30 ", " A-XG-600×1500	&	Φ48×2.5×1560	&	Q195	&	5.60 ", " A-XG-900×1000	&	Φ48×2.5×1238	&	Q195	&	4.70 ", " A-XG-900×1500	&	Φ48×2.5×1668	&	Q195	&	5.90 ", " A-XG-900×2000	&	Φ48×2.5×2129	&	Q195	&	7.20 ", " A-XG-1200×1000	&	Φ48×2.5×1436	&	Q195	&	5.30 ", " A-XG-1200×1500	&	Φ48×2.5×1820	&	Q195	&	6.40 ", " A-XG-1200×2000	&	Φ48×2.5×2250	&	Q195	&	7.55 ", " A-XG-1500×1000	&	Φ48×2.5×1664	&	Q195	&	5.90 ", " A-XG-1500×1500	&	Φ48×2.5×2005	&	Q195	&	6.90 ", " A-XG-1500×2000	&	Φ48×2.5×2402	&	Q195	&	8.00 ", " A-XG-1800×1000	&	Φ48×2.5×1912	&	Q195	&	6.60 ", " A-XG-1800×1500	&	Φ48×2.5×2215	&	Q195	&	7.40 ", " A-XG-1800×2000	&	Φ48×2.5×2580	&	Q195	&	8.50 ", " A-XG-2000×1000	&	Φ48×2.5×2085	&	Q195	&	7.00 ", " A-XG-2000×1500	&	Φ48×2.5×2411	&	Q195	&	7.90 ", " A-XG-2000×2000	&	Φ48×2.5×2756	&	Q195	&	8.80 ", " B-XG-300×1000	&	Φ33×2.3×1057	&	Q195	&	2.95 ", " B-XG-300×1500	&	Φ33×2.3×1555	&	Q195	&	3.82 ", " B-XG-600×1000	&	Φ33×2.3×1131	&	Q195	&	3.10 ", " B-XG-600×1500	&	Φ33×2.3×1606	&	Q195	&	3.92 ", " B-XG-900×1000	&	Φ33×2.3×1277	&	Q195	&	3.36 ", " B-XG-900×1500	&	Φ33×2.3×1710	&	Q195	&	4.10 ", " B-XG-900×2000	&	Φ33×2.3×2173	&	Q195	&	4.90 ", " B-XG-1200×1000	&	Φ33×2.3×1472	&	Q195	&	3.70 ", " B-XG-1200×1500	&	Φ33×2.3×1859	&	Q195	&	4.40 ", " B-XG-1200×2000	&	Φ33×2.3×2291	&	Q195	&	5.10 ", " B-XG-1500×1000	&	Φ33×2.3×1699	&	Q195	&	4.09 ", " B-XG-1500×1500	&	Φ33×2.3×2042	&	Q195	&	4.70 ", " B-XG-1500×2000	&	Φ33×2.3×2402	&	Q195	&	5.40 ", " B-XG-1800×1000	&	Φ33×2.3×1946	&	Q195	&	4.53 ", " B-XG-1800×1500	&	Φ33×2.3×2251	&	Q195	&	5.05 ", " B-XG-1800×2000	&	Φ33×2.3×2618	&	Q195	&	5.70 ", " B-XG-2000×1000	&	Φ33×2.3×2119	&	Q195	&	4.82 ", " B-XG-2000×1500	&	Φ33×2.3×2411	&	Q195	&	5.35 ", " B-XG-2000×2000	&	Φ33×2.3×2756	&	Q195	&	5.95 "} },
                    { "水平斜杆", new string[] { " A-SXG-900×900	&	Φ48×2.5×1273	&	Q235B	&	4.30 ", " A-SXG-900×1200	&	Φ48×2.5×1500	&	Q235B	&	5.00 ", " A-SXG-900×1500	&	Φ48×2.5×1749	&	Q235B	&	5.70 ", " A-SXG-1200×1200	&	Φ48×2.5×1697	&	Q235B	&	5.55 ", " A-SXG-1200×1500	&	Φ48×2.5×1921	&	Q235B	&	6.20 ", " A-SXG-1500×1500	&	Φ48×2.5×2121	&	Q235B	&	6.80 ", " B-SXG-900×900	&	Φ42×2.5×1272	&	Q235B	&	3.80 ", " B-SXG-900×1200	&	Φ42×2.5×1500	&	Q235B	&	4.30 ", " B-SXG-900×1500	&	Φ42×2.5×1749	&	Q235B	&	5.00 ", " B-SXG-1200×1200	&	Φ42×2.5×1697	&	Q235B	&	4.90 ", " B-SXG-1200×1500	&	Φ42×2.5×1921	&	Q235B	&	5.50 ", " B-SXG-1500×1500	&	Φ42×2.5×2121	&	Q235B	&	6.00 "} }
                };
                for (int i = 0; i < 4; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)material[i, 0];
                    string[] types = (string[])material[i, 1];
                    for (int j = 0; j < types.Length; j++)
                    {
                        DevComponents.DotNetBar.ButtonItem btnChildItem = new DevComponents.DotNetBar.ButtonItem();
                        string[] info = types[j].ToString().Split('&');
                        btnChildItem.Text   = info[0];
                        btnChildItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                        {
                            int RowNum = Dgv_Recommend4Material.CurrentRow.Index;
                            DevComponents.DotNetBar.ButtonItem item            = sender1 as DevComponents.DotNetBar.ButtonItem;
                            Dgv_Recommend4Material.Rows[RowNum].Cells[1].Value = item.Parent.Text;
                            Dgv_Recommend4Material.Rows[RowNum].Cells[2].Value = info[0];
                            Dgv_Recommend4Material.Rows[RowNum].Cells[3].Value = info[1];
                            Dgv_Recommend4Material.Rows[RowNum].Cells[4].Value = info[2];
                            Dgv_Recommend4Material.Rows[RowNum].Cells[5].Value = info[3];
                            Dgv_Recommend4Material.Refresh();
                        });
                        btnItem.SubItems.Add(btnChildItem);
                    }
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 15
0
        private void FrmRecommend7_Load(object sender, EventArgs e)
        {
            #region //7吊脚手架—材料安排表
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "选择材料";
                colMaterialChoice.Width      = 60;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "材料名称";
                colMaterial.Width      = 140;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialNumber.HeaderText = "数量";
                colMaterialNumber.Width      = 120;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialRemark = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterialRemark.HeaderText = "规格";
                colMaterialRemark.Width      = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "删除行";
                colMaterialDelete.Width      = 50;
                Dgv_Recommend7Material.Columns.Add(colMaterialChoice);
                Dgv_Recommend7Material.Columns.Add(colMaterial);
                Dgv_Recommend7Material.Columns.Add(colMaterialNumber);
                Dgv_Recommend7Material.Columns.Add(colMaterialRemark);
                Dgv_Recommend7Material.Columns.Add(colMaterialDelete);
                Dgv_Recommend7Material.Rows.Add();

                object[] strMaterial = new object[] { "手板葫芦", "工字钢", "钢丝卡子", "密目网", "安全锁", "钢丝绳" };
                string[] strNumber   = new string[] { "         个", "         m", "          个", "           m2", "      个", "         m" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend7Material.CurrentRow.Index;
                        Dgv_Recommend7Material.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        for (int j = 0; j < strMaterial.Length; j++)
                        {
                            if (btnItem.Text == strMaterial[j].ToString())
                            {
                                Dgv_Recommend7Material.Rows[RowNum].Cells[2].Value = strNumber[j];
                                break;
                            }
                        }
                        Dgv_Recommend7Material.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //7吊脚手架—劳动力安排
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "选择工种";
                colWorktypeChoice.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "工种名称";
                colWorktype.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "人数";
                colWorkNumber.Width      = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                Dgv_Recommend7Labor.Columns.Add(colWorktypeChoice);
                Dgv_Recommend7Labor.Columns.Add(colWorktype);
                Dgv_Recommend7Labor.Columns.Add(colWorkNumber);
                Dgv_Recommend7Labor.Columns.Add(colWorkDelete);
                Dgv_Recommend7Labor.Rows.Add();

                object[] strWork = new object[] { "安全员", "特种作业人员", "架子工" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_Recommend7Labor.CurrentRow.Index;
                        Dgv_Recommend7Labor.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_Recommend7Labor.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 16
0
        private void FrmConretestrength1_Load(object sender, EventArgs e)
        {
            CbxBeamFormType.SelectedIndex = 0;
            #region 房屋建筑基础
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colbuildingfoundation = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colbuildingfoundation.HeaderText = "基础类型";
                colbuildingfoundation.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colconretestrength = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colconretestrength.HeaderText = "混凝土强度等级";
                colconretestrength.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colconreteuse = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colconreteuse.HeaderText = "混凝土用量";
                colconreteuse.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colsamplingnumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colsamplingnumber.HeaderText = "取样数量(组)";
                colsamplingnumber.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                X_Base.Columns.Add(colbuildingfoundation);
                X_Base.Columns.Add(colconretestrength);
                X_Base.Columns.Add(colconreteuse);
                X_Base.Columns.Add(colsamplingnumber);
                X_Base.Columns.Add(colWorkDelete);
                X_Base.Rows.Add();

                object[] strWork = new object[] { "无", "垫层", "梁", "柱", "墙" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Base.CurrentRow.Index;
                        X_Base.Rows[RowNum].Cells[0].Value = btnItem.Text;
                        X_Base.Refresh();
                    });
                    colbuildingfoundation.SubItems.Add(btnItem);
                }
                object[] strGrade = new object[] { "无", "C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80" };
                for (int i = 0; i < strGrade.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strGrade[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Base.CurrentRow.Index;
                        X_Base.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        X_Base.Refresh();
                    });
                    colconretestrength.SubItems.Add(btnItem);
                }
            }
            #endregion
            #region //房屋建筑主体
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colmainfloor = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colmainfloor.HeaderText = "主体层数";
                colmainfloor.Width      = 90;
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colmaintype = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colmaintype.HeaderText = "主体类型";
                colmaintype.Width      = 90;
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colconretestrength = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colconretestrength.HeaderText = "混凝土强度等级";
                colconretestrength.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colconreteuse = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colconreteuse.HeaderText = "混凝土用量";
                colconreteuse.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colsamplingnumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colsamplingnumber.HeaderText = "取样数量(组)";
                colsamplingnumber.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                X_Mainpart.Columns.Add(colmainfloor);
                X_Mainpart.Columns.Add(colmaintype);
                X_Mainpart.Columns.Add(colconretestrength);
                X_Mainpart.Columns.Add(colconreteuse);
                X_Mainpart.Columns.Add(colsamplingnumber);
                X_Mainpart.Columns.Add(colWorkDelete);
                X_Mainpart.Rows.Add();

                object[] strfloor = new object[] { "无", "首层", "二层", "三层", "四层", "五层", "六层", "七层", "八层", "九层", "十层",
                                                   "十一层", "十二层", "十三层", "十四层", "十五层", "十六层", "十七层", "十八层", "十九层", "二十一层", "二十二层", "二十三层", "二十四层", "二十五层",
                                                   "二十六层", "二十七层", "二十八层", "二十九层", "三十", "顶层" };
                for (int i = 0; i < strfloor.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strfloor[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Mainpart.CurrentRow.Index;
                        X_Mainpart.Rows[RowNum].Cells[0].Value = btnItem.Text;
                        X_Mainpart.Refresh();
                    });
                    colmainfloor.SubItems.Add(btnItem);
                }
                object[] strtype = new object[] { "无", "墙", "柱", "梁", "板" };
                for (int i = 0; i < strtype.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strtype[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Mainpart.CurrentRow.Index;
                        X_Mainpart.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        X_Mainpart.Refresh();
                    });
                    colmaintype.SubItems.Add(btnItem);
                }
                object[] strGrade = new object[] { "无", "C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80" };
                for (int i = 0; i < strGrade.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strGrade[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Mainpart.CurrentRow.Index;
                        X_Mainpart.Rows[RowNum].Cells[2].Value = btnItem.Text;
                        X_Mainpart.Refresh();
                    });
                    colconretestrength.SubItems.Add(btnItem);
                }
            }
            #endregion
            #region 房屋建筑零星混凝土
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colconretestrength = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colconretestrength.HeaderText = "混凝土强度等级";
                colconretestrength.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colconreteuse = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colconreteuse.HeaderText = "混凝土用量";
                colconreteuse.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colsamplingnumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colsamplingnumber.HeaderText = "取样数量(组)";
                colsamplingnumber.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                X_Concrete.Columns.Add(colconretestrength);
                X_Concrete.Columns.Add(colconreteuse);
                X_Concrete.Columns.Add(colsamplingnumber);
                X_Concrete.Columns.Add(colWorkDelete);
                X_Concrete.Rows.Add();


                object[] strGrade = new object[] { "无", "C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80" };
                for (int i = 0; i < strGrade.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strGrade[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Concrete.CurrentRow.Index;
                        X_Concrete.Rows[RowNum].Cells[0].Value = btnItem.Text;
                        X_Concrete.Refresh();
                    });
                    colconretestrength.SubItems.Add(btnItem);
                }
            }
            #endregion
            #region 其他工程
            {
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colbuildingfoundation = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colbuildingfoundation.HeaderText = "取样位置";
                colbuildingfoundation.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colconretestrength = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colconretestrength.HeaderText = "混凝土强度等级";
                colconretestrength.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colconreteuse = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colconreteuse.HeaderText = "混凝土用量";
                colconreteuse.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colsamplingnumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colsamplingnumber.HeaderText = "取样数量(组)";
                colsamplingnumber.Width      = 100;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "删除行";
                colWorkDelete.Width      = 60;
                X_Otherproject.Columns.Add(colbuildingfoundation);
                X_Otherproject.Columns.Add(colconretestrength);
                X_Otherproject.Columns.Add(colconreteuse);
                X_Otherproject.Columns.Add(colsamplingnumber);
                X_Otherproject.Columns.Add(colWorkDelete);
                X_Otherproject.Rows.Add();


                object[] strGrade = new object[] { "无", "C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80" };
                for (int i = 0; i < strGrade.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text   = (string)strGrade[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = X_Otherproject.CurrentRow.Index;
                        X_Otherproject.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        X_Otherproject.Refresh();
                    });
                    colconretestrength.SubItems.Add(btnItem);
                }
            }
            #endregion
        }
Esempio n. 17
0
        private void FrmFromSelect_Load(object sender, EventArgs e)
        {
            #region //��Ա����
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colWorktypeChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colWorktypeChoice.HeaderText = "ѡ����";
                colWorktypeChoice.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colWorktype = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colWorktype.HeaderText = "��������";
                colWorktype.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colWorkNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colWorkNumber.HeaderText = "����";
                colWorkNumber.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colWorkDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colWorkDelete.HeaderText = "ɾ����";
                colWorkDelete.Width = 60;
                Dgv_FS_Staff.Columns.Add(colWorktypeChoice);
                Dgv_FS_Staff.Columns.Add(colWorktype);
                Dgv_FS_Staff.Columns.Add(colWorkNumber);
                Dgv_FS_Staff.Columns.Add(colWorkDelete);
                Dgv_FS_Staff.Rows.Add();

                object[] strWork = new object[] { "��������", "��ȫ�ල", "�������", "��������", "���ӹ�", "�纸��", "ľ��", "�����", "��������", "�ֽ" };
                for (int i = 0; i < strWork.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strWork[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {
                        int RowNum = Dgv_FS_Staff.CurrentRow.Index;
                        Dgv_FS_Staff.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        Dgv_FS_Staff.Refresh();
                    });
                    colWorktypeChoice.SubItems.Add(btnItem);
                }
            }
            #endregion

            #region //��е���ű�
            {
                DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn colMaterialChoice = new DevComponents.DotNetBar.Controls.DataGridViewButtonXColumn();
                colMaterialChoice.HeaderText = "ѡ���е";
                colMaterialChoice.Width = 100;
                DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterial = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
                colMaterial.HeaderText = "�����";
                colMaterial.Width = 180;
                DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn colMaterialNumber = new DevComponents.DotNetBar.Controls.DataGridViewIntegerInputColumn();
                colMaterialNumber.HeaderText = "����";
                colMaterialNumber.Width = 180;
             // DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn colMaterialRemark = new DevComponents.DotNetBar.Controls.DataGridViewTextBoxDropDownColumn();
               // colMaterialRemark.HeaderText = "���";
                //colMaterialRemark.Width = 150;
                DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn colMaterialDelete = new DevComponents.DotNetBar.Controls.DataGridViewCheckBoxXColumn();
                colMaterialDelete.HeaderText = "ɾ����";
                colMaterialDelete.Width = 60;
                Dgv_FS_Machine.Columns.Add(colMaterialChoice);
                Dgv_FS_Machine.Columns.Add(colMaterial);
                Dgv_FS_Machine.Columns.Add(colMaterialNumber);
               // Dgv_FS_Machine.Columns.Add(colMaterialRemark);
                Dgv_FS_Machine.Columns.Add(colMaterialDelete);
                Dgv_FS_Machine.Rows.Add();

                object[] strMaterial = new object[] { "����", "��ͷ����", "Բ�̾�", "ƽ��", "�ֵ���", "̨��", "������", "�������", "ѹ��", "�����", "�ֵ���", "��ѹ��", "��˿ǯ", "ī�������ߴ�", "ɰ���и��", "������͹�����", "ˮ׼��", "���ⴹ׼��", "ˮƽ��", "�־��", "ֱ��", "����", "����" };
               // string[] strNumber = new string[] { "         ��", "         m", "          ��", "           m2", "      ��", "         m" };
                for (int i = 0; i < strMaterial.Length; i++)
                {
                    DevComponents.DotNetBar.ButtonItem btnItem = new DevComponents.DotNetBar.ButtonItem();
                    btnItem.Text = (string)strMaterial[i];
                    btnItem.Click += new System.EventHandler(delegate(object sender1, System.EventArgs args)
                    {

                        int RowNum = Dgv_FS_Machine.CurrentRow.Index;
                        Dgv_FS_Machine.Rows[RowNum].Cells[1].Value = btnItem.Text;
                        /*  for (int j = 0; j < strMaterial.Length; j++)
                           {
                            if (btnItem.Text == strMaterial[j].ToString())
                               {
                                   Dgv_FS_Machine.Rows[RowNum].Cells[2].Value = strNumber[j];
                                   break;
                               }
                           }
                       */
                        Dgv_FS_Machine.Refresh();
                    });
                    colMaterialChoice.SubItems.Add(btnItem);
                }
            }
            #endregion
        }