在不同形式的文本框中添加 [英] Addition on a text box from differnet forms

查看:108
本文介绍了在不同形式的文本框中添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个关于银行管理系统的项目。它基本上是一个非常简单的项目,只是从帐户中执行DEPOSIT和Withdrawl等操作。当然,他们还有其他形式,其中银行详细信息,客户详细信息和用户资料都是他们的。



我以存款形式被打动。在这种形式中,我有一个名为AVAILABLE BALANCE的字段,它将从存款表格中存入的金额,主表格中的金额和WITHDAWL表格中的WITHDRAWL AMOUNT中总计金额。



所以这个可用平衡字段基本上涉及3种形式。如何执行该任务。我无法这样做....



如何解决这个问题。我没有足够的时间来完成我的项目,所以 fast 回复真的很感激。

I am doing a project on banking management system. Its basically a very simple project which just prforms the operation like DEPOSIT and Withdrawl from an account. Of coursely their are other forms where bank details, customer details and user profiles are their.

I am struck in DEPOSIT form. in this form i have a field called AVAILABLE BALANCE which will sum up the amounts from AMOUNT DEPOSITED from DEPOSIT form, OPENING AMOUNT from main form and WITHDRAWL AMOUNT from WITHDAWL form.

so basically 3 forms are involved with this AVAILABLE BALANCE field. How to perform that task. I am not able to do so....

How can this problem be solved. I have very little time for completing my project, so fast replies will really be appreciated.

推荐答案





我想,你把所有三种形式保持在开放状态,我不这是一个好主意。因此,您可以更好地按表单处理表单并从数据库获取下一个表单的详细信息,从以前的表单更新也使用MDI Parent表示。



但是,您可以使用Application.OpenForms集合访问所有活动表单。您可以遍历此集合并获取字段值。

Hi,

I guess, you have kept all three forms in open state, i dont this its a good idea. So, better you can process form by form and get the details next form from database, which got updated from previous form also use MDI Parent presentation.

however, you can access the all the active forms by using "Application.OpenForms" collection. you can iterate through this collection and get the field values.
foreach(Form frm in Application.OpenForms)
    {
        if(frm.Name == "MainForm") // your name of the form
        {
            //do your task.
        }
}






or

if(Application.OpenForms["MainForm"] != null)
{
    string value = ((TextBox)(((Form)(Application.OpenForms["MainForm"])).FindControl("TextBox1))).Text;
}





希望有所帮助。



hope it helps.


imin in MDI表格....



这是我的问题..



>他们是各种形式,如 cust_master ,其中我有一个文本框(文本11),它存储开头金额

>然后我有存款表格 存款金额 Text3

>另外,他们是撤回表单,客户将从中取出资金撤回金额 (Text3)





然后我必须在存款表单中将所有这些加起来,其中可用余额在Text7中。



现在告诉我如何在点击存款表格提交按钮时自动更新可用余额 ...

基本上,可用余额=未结金额+已存入金额 - 提取金额

+++++ br />
加上我需要一个帮助,当一个人在存款表中输入帐户号并填写所有表格时点击提交它还应该检查天气账号是否可用来自cust_master表格(text2)......



请先生,我需要帮助解决这些问题。快速回复真的很感激。



检查此屏幕截图的链接

https://anonfiles.com/file/4f6669f5934da9cc2a31d956e0f02851 [ ^ ]
i m usin MDI form....

and here is my problem in detail..

> well their are various forms like cust_master where i have a Text box(Text 11) which stores the opening amount
> Then i have this deposit form which deposits amount in Text3
> Plus their is a withdrawl form from where customer will take money out from Amount withdrawn(Text3)


Then i have to sum all these up in Deposit form where Available balance is in Text7.

Now tell me how can i do update the Available balance automatically when the submit button is clicked on Deposit Form...
so basically, Available Balance=Open Amount + Amount Deposited - Amount Withdrawl
+++++
Plus i need one more help, when one enters the account no in deposit form and fill up all the forms and when click submit, it should also check weather the Account no is available or not from cust_master form(text2)...

Please sir i need help on these things. Fast reply will really be appreciated.

check this link for Screen Shot
https://anonfiles.com/file/4f6669f5934da9cc2a31d956e0f02851[^]


这篇关于在不同形式的文本框中添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆