コード例 #1
0
        // 支付方式
        private void repositoryItemTextEdit3_Click(object sender, EventArgs e)
        {
            frmSelectBasicData frmSelectBasicData = new frmSelectBasicData();

            frmSelectBasicData.ShowSelectBasicDataFrm(3);
            if (frmSelectBasicData.Tag != null)
            {
                if (frmSelectBasicData.Tag.ToString().Trim() == "ClearTextBox")
                {
                    gridView1.SetFocusedRowCellValue(gridIncomeType, "");  //名称
                    gridView1.SetFocusedRowCellValue(gridIncomeType2, ""); //Guid
                }
                else
                {
                    string[] arrValue = frmSelectBasicData.Tag.ToString().Split('|');


                    if (arrValue.Length > 0)
                    {
                        gridView1.SetFocusedRowCellValue(gridIncomeType, arrValue[1]);  //名称
                        gridView1.SetFocusedRowCellValue(gridIncomeType2, arrValue[0]); //Guid
                    }
                }
            }
        }
コード例 #2
0
        //领料仓库
        private void btnSelectOutStorage_Click(object sender, EventArgs e)
        {
            frmSelectBasicData frmSelectBasicData = new frmSelectBasicData();

            frmSelectBasicData.ShowSelectBasicDataFrm(5);
            if (frmSelectBasicData.Tag != null)
            {
                if (frmSelectBasicData.Tag.ToString().Trim() == "ClearTextBox")
                {
                    txtOutStorage.Text = ""; //名称
                    txtOutStorage.Tag  = ""; //Guid
                }
                else
                {
                    string[] arrValue = frmSelectBasicData.Tag.ToString().Split('|');


                    if (arrValue.Length > 0)
                    {
                        txtOutStorage.Text = arrValue[1]; //名称
                        txtOutStorage.Tag  = arrValue[0]; //Guid
                    }
                }
            }
        }