Exemple #1
0
        public bool Save()
        {
            ManagementShares.TransferRequest.JRequestSell SellRequest = new ManagementShares.TransferRequest.JRequestSell();
            SellRequest.GetData(Code);
            SellRequest.Status = Convert.ToInt32(cmbStatus.SelectedValue);
            ClassLibrary.JDataBase JDB = new ClassLibrary.JDataBase();
            bool Res = SellRequest.Update(JDB);

            JDB.Dispose();
            return(Res);
        }
Exemple #2
0
 public void _SetForm()
 {
     if (Code > 0)
     {
         ManagementShares.TransferRequest.JRequestSell SellRequest = new ManagementShares.TransferRequest.JRequestSell();
         SellRequest.GetData(Code);
         ClassLibrary.JPerson Perosn = new ClassLibrary.JPerson();
         Perosn.getData(SellRequest.PCode);
         txtPersonName.Text      = Perosn.Name + " " + Perosn.Fam;
         txtRequestDate.Text     = SellRequest.RequestDate.ToString("yyyy/MM/dd");
         txtRequestType.Text     = "درخواست فروش";
         txtSharesCount.Text     = SellRequest.ShareCount.ToString();
         cmbStatus.SelectedValue = SellRequest.Status.ToString();
     }
 }