private void SetInfo(Foresight.DataAccess.Cheque_InSummary data)
 {
     this.tdWriteMan.Value     = data.WriteMan;
     this.tdWriteDate.Value    = data.WriteDate > DateTime.MinValue ? data.WriteDate.ToString("yyyy-MM-dd HH:mm:ss") : "";
     this.tdDepartmentID.Value = data.DepartmentID > 0 ? data.DepartmentID.ToString() : "";
     this.tdProjectID.Value    = data.ProjectID > 0 ? data.ProjectID.ToString() : "";
     this.tdSellerID.Value     = data.SellerID > 0 ? data.SellerID.ToString() : "";
     if (data.SellerID > 0)
     {
         var seller = Foresight.DataAccess.Cheque_Seller.GetCheque_Seller(data.SellerID);
         if (seller != null)
         {
             this.tdSellerTaxNumber.Value    = seller.SellerTaxNumber;
             this.tdSellerAddressPhone.Value = seller.SellerAddressPhone;
             this.tdSellerBankAccount.Value  = seller.SellerBankAccount;
         }
     }
     this.tdChequeNumber.Value = data.ChequeNumber;
     this.tdChequeTime.Value   = data.ChequeTime > DateTime.MinValue ? data.ChequeTime.ToString("yyyy-MM-dd") : "";
     this.tdBuyerID.Value      = data.BuyerID > 0 ? data.BuyerID.ToString() : "";
     if (data.BuyerID > 0)
     {
         var buyer = Foresight.DataAccess.Cheque_Buyer.GetCheque_Buyer(data.BuyerID);
         if (buyer != null)
         {
             this.tdBuyerTaxNumber.Value    = buyer.BuyerTaxNumber;
             this.tdBuyerAddressPhone.Value = buyer.BuyerAddressPhone;
             this.tdBuyerBankAccount.Value  = buyer.BuyerBankAccount;
         }
     }
     this.tdChequeCode.Value     = data.ChequeCode;
     this.tdChequeCategory.Value = data.ChequeCategory;
 }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int ID = 0;

            int.TryParse(Request.QueryString["ID"], out ID);
            summary = Foresight.DataAccess.Cheque_InSummary.GetCheque_InSummary(ID);
            if (summary == null)
            {
                Response.End();
                return;
            }
            if (summary.SignState == 1)
            {
                SetInfo(summary);
                return;
            }
            this.tdSignOperator.Value = WebUtil.GetUser(this.Context).RealName;
            this.tdSignTime.Value     = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
Beispiel #3
0
 private void SetInfo(Foresight.DataAccess.Cheque_InSummary data)
 {
     this.tdSignOperator.Value = data.SignOperator;
     this.tdSignTime.Value     = data.SignTime > DateTime.MinValue ? data.SignTime.ToString("yyyy-MM-dd HH:mm:ss") : "";
     this.tdSignRemark.Value   = data.SignRemark;
 }